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