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