fixed first battery when multiple batteries
This commit is contained in:
parent
e206729fc3
commit
0228c5966c
1 changed files with 1 additions and 0 deletions
1
neofetch
1
neofetch
|
@ -1563,6 +1563,7 @@ getbattery () {
|
||||||
unset battery
|
unset battery
|
||||||
|
|
||||||
# Print each battery on a separate line.
|
# Print each battery on a separate line.
|
||||||
|
index=0
|
||||||
for bat in "${batteries[@]}"; do
|
for bat in "${batteries[@]}"; do
|
||||||
case "$battery_display" in
|
case "$battery_display" in
|
||||||
"bar") prin "${title}${index}: $(bar ${bat/'%'} 100)" ;;
|
"bar") prin "${title}${index}: $(bar ${bat/'%'} 100)" ;;
|
||||||
|
|
Loading…
Reference in a new issue