From 2ac5c9e791f7fd7f0a25409507333337ce614682 Mon Sep 17 00:00:00 2001 From: Andrew Titmuss Date: Sun, 13 Mar 2016 00:00:02 +1100 Subject: [PATCH] made memory_bar easier to use --- neofetch | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/neofetch b/neofetch index b342d257..248c805d 100755 --- a/neofetch +++ b/neofetch @@ -1130,12 +1130,11 @@ getmemory () { esac # Progress bars - if [ "$memory_bar" == "on" ]; then - case "$memory_info" in - "off") memory=" $(bar "$memused" "$memtotal")" ;; - *) memory+=" $(bar "$memused" "$memtotal")" ;; - esac - fi + case "$memory_info_bar" in + "bar") memory="$(bar "${memused}" "${memtotal}")" ;; + "infobar") memory="${memory} $(bar "${memused}" "${memtotal}")" ;; + "barinfo") memory="$(bar "${memused}" "${memtotal}") ${memory}" ;; + esac } # }}}