fixed first battery when multiple batteries
@ -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)" ;;