From ea34e5af7d1b19e95e638c437ea84dc439a69def Mon Sep 17 00:00:00 2001 From: srdusr Date: Mon, 12 Dec 2022 23:57:01 +0200 Subject: Add memory to right-status script and fixed overall formatting --- .config/tmux/right-status.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '.config') diff --git a/.config/tmux/right-status.sh b/.config/tmux/right-status.sh index e806570..82502c4 100755 --- a/.config/tmux/right-status.sh +++ b/.config/tmux/right-status.sh @@ -7,7 +7,7 @@ function memory-usage() { # Calculate the percentage of memory used with bc. percent=$(bc -l <<< "100 * $total / $used") # Feed the variables into awk and print the values with formating. - awk -v u=$used -v t=$total -v p=$percent 'BEGIN {printf "%sMi/%sMi %.1f% ", t, u, p}' + awk -v u=$used -v t=$total -v p=$percent 'BEGIN {printf "%s/%s Mem %.1f% ", t, u, p}' fi } -- cgit v1.2.3