update batperc and batpercd
This commit is contained in:
1 parent
498d1f45d0
commit
edfde04ba9
2 files changed
+17
-13
No files matched your search
+9
-8
@@ -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
|
||||
Reference in new issue
Block a user