Erroneous class for critical battery
This commit is contained in:
parent
1247df0cce
commit
57ebe092ba
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue