From fec784019e326d9f56090853864987827b72513e Mon Sep 17 00:00:00 2001 From: Andrew Titmuss Date: Sun, 13 Mar 2016 00:05:48 +1100 Subject: [PATCH] made battery_bar easier to use --- neofetch | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/neofetch b/neofetch index 248c805d..d9b66561 100755 --- a/neofetch +++ b/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 } # }}}