Fix battery progress bars when not charging
This commit is contained in:
parent
602be3a6c0
commit
b15a9b4463
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/'% 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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue