Merge pull request #155 from iandrewt/battery_index

fixed first battery when multiple batteries
This commit is contained in:
Dylan Araps 2016-03-17 16:10:59 +11:00
commit 608a47dd06
1 changed files with 1 additions and 0 deletions

View File

@ -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)" ;;