aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsrdusr <trevorgray@srdusr.com>2022-12-12 23:57:01 +0200
committersrdusr <trevorgray@srdusr.com>2022-12-12 23:57:01 +0200
commitea34e5af7d1b19e95e638c437ea84dc439a69def (patch)
tree1bee5098a028079b1fc698a1bea2460930cc746a
parentc68b92c079238afef236b2582ef99a0a4f55fc45 (diff)
downloaddotfiles-ea34e5af7d1b19e95e638c437ea84dc439a69def.tar.gz
dotfiles-ea34e5af7d1b19e95e638c437ea84dc439a69def.zip
Add memory to right-status script and fixed overall formatting
-rwxr-xr-x.config/tmux/right-status.sh2
1 files changed, 1 insertions, 1 deletions
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
}