feat: change battery notification sleep

2 -> 5 minutes
This commit is contained in:
swytch 2020-08-26 13:09:35 +02:00
parent d2b3034a8a
commit 1367f47150
1 changed files with 3 additions and 3 deletions

View File

@ -21,7 +21,7 @@ notify() { \
}
update() { \
# We want the notification to be sent every 2 mins
# We want the notification to be sent every 5 mins
# But only if the computer is unplugged
if [ "$(cat /sys/class/power_supply/AC/online)" = 0 ]; then
notify && refbar
@ -31,7 +31,7 @@ update() { \
while :; do
update
# Sleep for two minutes before sending another notification
sleep 120 &
# Sleep for 5 minutes before sending another notification
sleep 300 &
wait
done