summaryrefslogtreecommitdiff
path: root/bin/status.sh
diff options
context:
space:
mode:
Diffstat (limited to 'bin/status.sh')
-rwxr-xr-xbin/status.sh10
1 files changed, 6 insertions, 4 deletions
diff --git a/bin/status.sh b/bin/status.sh
index 5bd9e4c..35ae205 100755
--- a/bin/status.sh
+++ b/bin/status.sh
@@ -34,10 +34,12 @@ while true; do
bat_status="$(cat $BDIR/status | tr 'a-z' 'A-Z' | head -c 3)"
bat_level="$(cat $BDIR/capacity)"
color="#ffffff"
- if [ "$bat_level" -le 10 ]; then
- color="#ff0000"
- elif [ "$bat_level" -le 25 ]; then
- color="#ffff00"
+ if [ "$bat_status" != "CHA" ]; then
+ if [ "$bat_level" -le 10 ]; then
+ color="#ff0000"
+ elif [ "$bat_level" -le 25 ]; then
+ color="#ffff00"
+ fi
fi
block_color "$bat_status $bat_level%" "$color"