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