Fix battery progress bars when not charging

This commit is contained in:
Dylan 2016-03-26 01:25:41 +11:00
parent 602be3a6c0
commit b15a9b4463
1 changed files with 3 additions and 3 deletions

View File

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