update batperc and batpercd

This commit is contained in:
wt committed 2024-07-15 08:09:22 +07:00
1 parent 498d1f45d0
commit edfde04ba9
2 files changed
+17 -13

No files matched your search

+9 -8
View File
@@ -4,12 +4,13 @@ batperc=$(~/dotfiles/bin/batperc -j)
echo $batperc
while true; do
for i in $batperc; do
if [[ "$i" -le "20" ]]; then
notify-send "Battery low: $i%" -u critical
sleep 60
fi
if [[ "$batperc" != "no" ]]; then
while true; do
for i in $batperc; do
if [[ "$i" -le "20" ]]; then
notify-send "Battery low: $i%" -u critical
sleep 60
fi
done
done
done
fi