made battery_bar easier to use
This commit is contained in:
parent
2ac5c9e791
commit
fec784019e
1 changed files with 5 additions and 6 deletions
11
neofetch
11
neofetch
|
@ -1540,12 +1540,11 @@ getbattery () {
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
if [ "$battery_bar" == "on" ]; then
|
case "$battery_info_bar" in
|
||||||
case "$battery_info" in
|
"bar") battery="$(bar ${battery/'%'} 100)" ;;
|
||||||
"off") battery="$(bar ${battery/'%'} 100)" ;;
|
"infobar") battery="${battery} $(bar "${battery/'%'}" 100)" ;;
|
||||||
*) battery+=" $(bar ${battery/'%'} 100)" ;;
|
"barinfo") battery="$(bar "${battery/'%'}" 100) ${battery}" ;;
|
||||||
esac
|
esac
|
||||||
fi
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# }}}
|
# }}}
|
||||||
|
|
Loading…
Reference in a new issue