summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorubq323 <ubq323@ubq323.website>2023-05-24 03:20:31 +0100
committerubq323 <ubq323@ubq323.website>2023-05-24 03:20:31 +0100
commitce9afcf6114d0ac7fa0d8acf5739feaa18d76803 (patch)
treeadb928f69a22252d77d85176ebc6257f565ff9fe /bin
parentdc5f2cfd52638a0a2ca5bf7c507579d8235edcfc (diff)
multitudes
Diffstat (limited to 'bin')
-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"