feat: change battery notification sleep
2 -> 5 minutes
This commit is contained in:
parent
d2b3034a8a
commit
1367f47150
@ -21,7 +21,7 @@ notify() { \
|
|||||||
}
|
}
|
||||||
|
|
||||||
update() { \
|
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
|
# But only if the computer is unplugged
|
||||||
if [ "$(cat /sys/class/power_supply/AC/online)" = 0 ]; then
|
if [ "$(cat /sys/class/power_supply/AC/online)" = 0 ]; then
|
||||||
notify && refbar
|
notify && refbar
|
||||||
@ -31,7 +31,7 @@ update() { \
|
|||||||
|
|
||||||
while :; do
|
while :; do
|
||||||
update
|
update
|
||||||
# Sleep for two minutes before sending another notification
|
# Sleep for 5 minutes before sending another notification
|
||||||
sleep 120 &
|
sleep 300 &
|
||||||
wait
|
wait
|
||||||
done
|
done
|
||||||
|
Reference in New Issue
Block a user