battery under 10% now causes notifications to appear

main
The_miro 2024-11-28 12:33:40 +01:00
parent f7a8c8c7f8
commit 819e151f13
2 changed files with 3 additions and 3 deletions

View File

@ -10,6 +10,8 @@
:exclusive true
(bar :monitor_ monitor))
(defpoll battery :interval "2s"
"scripts/batteryperc")
@ -86,9 +88,6 @@
(defpoll volume :interval "0.5s"
"scripts/getvol")
(defpoll battery :interval "2s"
"scripts/batteryperc")
(defpoll time :interval "1s"
"date '+%H:%M:%S|%d.%m.%Y'")

View File

@ -31,6 +31,7 @@ else
elif [ $num -gt 10 ]; then
echo "󰁺 ${perc}"
else
notify-send --urgency=critical -t 2000 "󱃍 low battery, please charge"
echo "󰂎 ${perc}"
fi
fi