herbstluftwm: panel: adjust color for charging state

This commit is contained in:
Thomas Preisner 2016-12-09 02:40:23 +01:00
parent 5cdfeb842a
commit 3905d3409b

View file

@ -97,7 +97,7 @@ function battery() {
status=$(acpi -a | cut -d':' -f2)
battery=$(acpi -b | cut -d, -f2 | sed -e 's/[^0-9]//g')
if [[ $status == " on-line" ]]; then
echo -n $(icon ac2 brightblue) ${battery}%
echo -n $(icon ac2 brightmagenta) ${battery}%
elif [[ $battery -le 20 ]]; then
echo -n $(icon battery_horz1 red) ${battery}%
elif [[ $battery -le 65 ]]; then