Commit 608a47dd authored by Dylan Araps's avatar Dylan Araps

Merge pull request #155 from iandrewt/battery_index

fixed first battery when multiple batteries
parents f718406f 0228c596
......@@ -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)" ;;
......
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