made memory_bar easier to use
This commit is contained in:
parent
78e78a08f2
commit
2ac5c9e791
1 changed files with 5 additions and 6 deletions
11
neofetch
11
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
|
||||
}
|
||||
|
||||
# }}}
|
||||
|
|
Loading…
Reference in a new issue