made battery_bar easier to use

This commit is contained in:
Andrew Titmuss 2016-03-13 00:05:48 +11:00
parent 2ac5c9e791
commit fec784019e

View file

@ -1540,12 +1540,11 @@ getbattery () {
;;
esac
if [ "$battery_bar" == "on" ]; then
case "$battery_info" in
"off") battery="$(bar ${battery/'%'} 100)" ;;
*) battery+=" $(bar ${battery/'%'} 100)" ;;
esac
fi
case "$battery_info_bar" in
"bar") battery="$(bar ${battery/'%'} 100)" ;;
"infobar") battery="${battery} $(bar "${battery/'%'}" 100)" ;;
"barinfo") battery="$(bar "${battery/'%'}" 100) ${battery}" ;;
esac
}
# }}}