diff options
author | ubq323 <ubq323@ubq323.website> | 2023-05-24 03:20:31 +0100 |
---|---|---|
committer | ubq323 <ubq323@ubq323.website> | 2023-05-24 03:20:31 +0100 |
commit | ce9afcf6114d0ac7fa0d8acf5739feaa18d76803 (patch) | |
tree | adb928f69a22252d77d85176ebc6257f565ff9fe /bin/status.sh | |
parent | dc5f2cfd52638a0a2ca5bf7c507579d8235edcfc (diff) |
multitudes
Diffstat (limited to 'bin/status.sh')
-rwxr-xr-x | bin/status.sh | 10 |
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" |