In no world should battery hibernate the system automatically

Not a job for a simple status script - user should be smart enough to
do it themselves.
This commit is contained in:
2025-11-03 15:42:19 +00:00
parent f531712101
commit 1241cc216d

View File

@@ -24,11 +24,10 @@ else
status="" status=""
elif [[ $capacity -gt 5 ]] elif [[ $capacity -gt 5 ]]
then then
notify-send -u critical "Charge now!" notify-send -u critical "Battery: Charge now!"
status="" status=""
else else
notify-send -u critical "Hibernating..." notify-send -u critical "Battery: Critical (< 5%)!"
systemctl hibernate
status="" status=""
fi fi
echo "$status $capacity% $time_left" echo "$status $capacity% $time_left"