extra battery warning ❗
This commit is contained in:
parent
fcf17a70f1
commit
b4de391de0
1 changed files with 5 additions and 1 deletions
|
@ -7,6 +7,7 @@ case $BLOCK_BUTTON in
|
|||
♻: stagnant charge
|
||||
🔌: charging
|
||||
⚡: charged
|
||||
❗: battery very low!
|
||||
- Text color reflects charge left" ;;
|
||||
esac
|
||||
|
||||
|
@ -23,8 +24,11 @@ elif [ "$capacity" -ge 20 ]; then
|
|||
color="#FFAE00"
|
||||
else
|
||||
color="#FF0000"
|
||||
warn="❗"
|
||||
fi
|
||||
|
||||
[ -z $warn ] && warn=" "
|
||||
|
||||
[ "$status" = "Charging" ] && color="#FFF"
|
||||
|
||||
printf "<span color='%s'>%s %s</span>" "$color" "$(echo "$status" | sed -e "s/,//g;s/Discharging/🔋/;s/Charging/🔌/;s/Unknown/♻️/;s/Full/⚡/;s/ 0*/ /g;s/ :/ /g")" "$(echo "$capacity" | sed -e 's/$/%/')"
|
||||
printf "<span color='%s'>%s%s%s</span>" "$color" "$(echo "$status" | sed -e "s/,//g;s/Discharging/🔋/;s/Charging/🔌/;s/Unknown/♻️/;s/Full/⚡/;s/ 0*/ /g;s/ :/ /g")" "$warn" "$(echo "$capacity" | sed -e 's/$/%/')"
|
||||
|
|
Loading…
Reference in a new issue