Browse Source

Add battery unplug warning

master
Riyyi 6 years ago
parent
commit
fe9afad7f2
  1. 4
      .scripts/wm/battery.sh

4
.scripts/wm/battery.sh

@ -29,6 +29,10 @@ if [ "$(echo $BAT_INFO | awk '{ print $6 }')" = "remaining" ]; then
notify-send -u critical -r 1 "Battery critically low!" notify-send -u critical -r 1 "Battery critically low!"
fi fi
else else
if [ "$CAPACITY" -ge "95" ]; then
notify-send -u low -r 1 "You should probably unplug."
fi
ICON="" ICON=""
fi fi

Loading…
Cancel
Save