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:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user