Remove check for battery num
This commit is contained in:
parent
4ad5cf791d
commit
59cc2f61ce
2
fetch
2
fetch
|
@ -1234,7 +1234,7 @@ getbattery () {
|
||||||
else
|
else
|
||||||
# If there's only a single battery and it's battery 0,
|
# If there's only a single battery and it's battery 0,
|
||||||
# don't number the subtitle.
|
# don't number the subtitle.
|
||||||
if [ "${#batteries[@]}" == 1 ] && [ "$battery_num" == 0 ]; then
|
if [ "${#batteries[@]}" == 1 ]; then
|
||||||
battery="$(prin "${title}: ${batteries[0]}%")"
|
battery="$(prin "${title}: ${batteries[0]}%")"
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
|
|
Reference in New Issue