Commit b5bde5c2 authored by Glen Mével's avatar Glen Mével

improve bell warnings in `battery-monitor.sh`

parent 54179ca3
......@@ -60,7 +60,7 @@ while true ; do
# Battery becomes very low.
elif [ "$state" -gt 1 -a "$status" = 'Discharging' -a "$percentage" -le "$THRESHOLD_VERY_LOW" ] ; then
state=1
bell 100
bell 250
# Note: notify-send is buggy, it picks the incorrect icon “battery-low”
# from /usr/share/notify-osd/icons/ instead of “battery-low-symbolic”
# from /usr/share/icons/.
......@@ -70,7 +70,7 @@ while true ; do
# Battery becomes critically low.
elif [ "$state" -gt 0 -a "$status" = 'Discharging' -a "$percentage" -le "$THRESHOLD_CRITICAL" ] ; then
state=0
bell 200
bell 500
notify-send -u critical -i battery-caution-symbolic \
"Batterie à $percentage %" 'Je vais dormir.'
logger 'Battery critically low, going to sleep'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment