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
|
||||
|
||||
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
|
||||
}
|
||||
|
||||
# }}}
|
||||
|
|
Loading…
Reference in a new issue