Fix battery state when used with progress bars
This commit is contained in:
parent
ab356239f3
commit
04b35027c7
1 changed files with 3 additions and 3 deletions
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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue