update battery notice

This commit is contained in:
Xamora 2025-01-10 10:08:08 +01:00
parent fcc5537074
commit 7742e85fff

View file

@ -16,13 +16,13 @@ while [[ 0 -eq 0 ]]; do
if [[ $battery_status == 'Discharging' && $battery_charge -le 40 ]]; then
if [[ $battery_charge -le 20 ]]; then
notify-send --replace-id=0 --icon=" " --urgency=critical "Battery critical!" "${battery_charge}% 🪫"
notify-send --replace-id=0 --urgency=critical "Battery critical!" "${battery_charge}% 🪫"
sleep 120
elif [[ $battery_charge -eq 40 ]]; then
notify-send --replace-id=1 --icon=" " --urgency=normal "Battery low!" "${battery_charge}% 🪫" --expire-time=30000
notify-send --replace-id=1 --urgency=normal "Battery low!" "${battery_charge}% 🪫" --expire-time=30000
sleep 240
fi
else
sleep 60
sleep 20
fi
done