Fix battery state when used with progress bars

This commit is contained in:
Dylan 2016-03-26 01:06:03 +11:00
parent ab356239f3
commit 04b35027c7

View file

@ -1634,9 +1634,9 @@ getbattery () {
esac
case "$battery_display" in
"bar") battery="$(bar ${battery/'%'} 100)" ;;
"infobar") battery="${battery} $(bar "${battery/'%'}" 100)" ;;
"barinfo") battery="$(bar "${battery/'%'}" 100) ${battery}" ;;
"bar") battery="$(bar ${battery/'% Charging'} 100)" ;;
"infobar") battery="${battery/ Charging} $(bar "${battery/'% Charging'}" 100)" ;;
"barinfo") battery="$(bar "${battery/'% Charging'}" 100) ${battery/ Charging}" ;;
esac
}