Browse Source

Add critically low warning to battery script

master
Riyyi 7 years ago
parent
commit
a464e58abc
  1. 6
      .scripts/wm/battery.sh

6
.scripts/wm/battery.sh

@ -22,11 +22,13 @@ if [ "$(echo $BAT_INFO | awk '{ print $6 }')" = "remaining" ]; then
ICON="" ICON=""
elif [ "$CAPACITY" -ge "20" ]; then elif [ "$CAPACITY" -ge "20" ]; then
ICON="" ICON=""
else else
ICON="" ICON=""
COLOR="#DC7A43" COLOR="#DC7A43"
notify-send -u critical -r 1 "Battery critically low!"
fi fi
else else
ICON="" ICON=""
fi fi

Loading…
Cancel
Save