commit 87db9fcc1502bbd321be233030de9dc9c660ba43
parent c10e0358458fcd70c5e1a283cf29bae263691abe
Author: dwrz <dwrz@dwrz.net>
Date: Wed, 29 Nov 2023 02:57:24 +0000
Update check_battery script threshold
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/scripts/check_battery b/scripts/check_battery
@@ -6,7 +6,7 @@ if [ "$(cat /sys/class/power_supply/BAT0/status)" = "Discharging" ]; then
exit 0
fi
-if [ "${CAPACITY}" -ge 0 ] && [ "${CAPACITY}" -le 3 ]; then
+if [ "${CAPACITY}" -ge 0 ] && [ "${CAPACITY}" -le 1 ]; then
notify-send --urgency critical "CRITICAL BATTERY" \
"Battery capacity is ${CAPACITY}%, hibernating in 30 seconds."
paplay /usr/share/sounds/woodenbeaver/stereo/battery-low.ogg