diff options
Diffstat (limited to 'Scripts/.local/scripts')
-rwxr-xr-x | Scripts/.local/scripts/status/memory | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Scripts/.local/scripts/status/memory b/Scripts/.local/scripts/status/memory new file mode 100755 index 0000000..eeaf7af --- /dev/null +++ b/Scripts/.local/scripts/status/memory @@ -0,0 +1,7 @@ +#!/bin/bash + +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 " Mem: %.2f" $1 +echo "%" |