diff options
author | Aryadev Chavali <aryadev@aryadevchavali.com> | 2021-07-10 17:11:33 +0100 |
---|---|---|
committer | Aryadev Chavali <aryadev@aryadevchavali.com> | 2021-07-10 17:11:33 +0100 |
commit | c6163358090bc5c4123f634f3bdd91c987c78aa4 (patch) | |
tree | e16307bd396db687e18803c02db32937b159f96b /Scripts/.local/scripts/status/memory | |
parent | be603ca4a273d60992130c658a182380a7984f7c (diff) | |
download | dotfiles-c6163358090bc5c4123f634f3bdd91c987c78aa4.tar.gz dotfiles-c6163358090bc5c4123f634f3bdd91c987c78aa4.tar.bz2 dotfiles-c6163358090bc5c4123f634f3bdd91c987c78aa4.zip |
(Scripts/status)~few minor edits for functionality and cleanliness
Status scripts needed some updating for dwmblocks, so did it.
Diffstat (limited to 'Scripts/.local/scripts/status/memory')
-rwxr-xr-x | Scripts/.local/scripts/status/memory | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Scripts/.local/scripts/status/memory b/Scripts/.local/scripts/status/memory index 9f50677..042596d 100755 --- a/Scripts/.local/scripts/status/memory +++ b/Scripts/.local/scripts/status/memory @@ -3,5 +3,4 @@ line=$(free -m | sed -n 2p); used=$(echo $line | awk '{print $3}'); available=$(echo $line | awk '{print $2}'); -echo "100 * $used / $available" | bc -l | xargs printf " %.2f" $1 -echo "%" +echo "" $(printf "%dMB" $used) $(echo "100 * $used / $available" | bc -l | xargs printf "%.2f" $1) |