Fix battery state when used with progress bars
This commit is contained in:
parent
ab356239f3
commit
04b35027c7
6
neofetch
6
neofetch
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Reference in New Issue