From ce9afcf6114d0ac7fa0d8acf5739feaa18d76803 Mon Sep 17 00:00:00 2001 From: ubq323 Date: Wed, 24 May 2023 03:20:31 +0100 Subject: multitudes --- bin/status.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'bin') 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" -- cgit v1.2.3