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=""
elif [[ $capacity -gt 5 ]]
then
notify-send -u critical "Charge now!"
notify-send -u critical "Battery: Charge now!"
status=""
else
notify-send -u critical "Hibernating..."
systemctl hibernate
notify-send -u critical "Battery: Critical (< 5%)!"
status=""
fi
echo "$status $capacity% $time_left"