Browse Source

Add battery warning color

master
Riyyi 7 years ago
parent
commit
dab7ce0ea1
  1. 4
      .scripts/wm/battery.sh

4
.scripts/wm/battery.sh

@ -12,6 +12,7 @@ else
TIME="" TIME=""
fi fi
COLOR="#FFFFFF"
if [ "$(echo $BAT_INFO | awk '{ print $6 }')" = "remaining" ]; then if [ "$(echo $BAT_INFO | awk '{ print $6 }')" = "remaining" ]; then
if [ "$CAPACITY" -ge "80" ]; then if [ "$CAPACITY" -ge "80" ]; then
ICON="" ICON=""
@ -23,6 +24,7 @@ if [ "$(echo $BAT_INFO | awk '{ print $6 }')" = "remaining" ]; then
ICON="" ICON=""
else else
ICON="" ICON=""
COLOR="#DC7A43"
fi fi
else else
ICON="" ICON=""
@ -30,4 +32,4 @@ fi
echo "$ICON $CAPACITY%$TIME" echo "$ICON $CAPACITY%$TIME"
echo "$ICON $CAPACITY%" echo "$ICON $CAPACITY%"
echo "#FFFFFF" echo "$COLOR"

Loading…
Cancel
Save