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