Erroneous class for critical battery

This commit is contained in:
John Mertz 2023-09-15 22:56:49 -06:00
parent 1247df0cce
commit 57ebe092ba
Signed by: jpm
GPG Key ID: E9C5EA2D867501AB
1 changed files with 46 additions and 46 deletions

View File

@ -29,7 +29,7 @@ elif [[ $1 == bar ]]; then
STATUS=" "
;;
[1-9])
CLASS="charging"
CLASS="critical"
STATUS=" "
;;
*)
@ -37,16 +37,16 @@ elif [[ $1 == bar ]]; then
;;
esac
;;
"Not charging")
"Full")
CLASS="ac"
STATUS=" "
;;
"Charging")
CLASS="charging"
STATUS="🗲 "
STATUS="🗲"
;;
*)
STATUS="✘ "
STATUS="✘"
;;
esac
printf '{"text":"%b%%","icon":"%b ","percentage":"%b","tooltip":"%b","class":"%b"}' "${STATUS}${LEVEL}" $STATUS $LEVEL "$TIME" $CLASS