Commit 0228c596 authored by Andrew Titmuss's avatar Andrew Titmuss

fixed first battery when multiple batteries

parent e206729f
...@@ -1563,6 +1563,7 @@ getbattery () { ...@@ -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)" ;;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment