update battwarning to show correct battery level on warning
This commit is contained in:
parent
9748bfa8fd
commit
f50a72b03b
1 changed files with 1 additions and 1 deletions
|
@ -7,7 +7,7 @@ while true; do
|
|||
currentPowerSetting=$(powerprofilesctl get)
|
||||
|
||||
if [ "$batteryLevel" -le "25" ] && [ "$batteryStatus" == "Discharging" ]; then
|
||||
notify-send -u critical -i ~/dotfiles/scripts/battery-alert.svg "Low Battery" "25% battery remaining"
|
||||
notify-send -u critical -i ~/dotfiles/scripts/battery-alert.svg "Low Battery" "$batteryLevel% battery remaining"
|
||||
fi
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue