diff options
author | Vidhu Kant Sharma <vidhukant@vidhukant.xyz> | 2022-09-09 21:11:43 +0530 |
---|---|---|
committer | Vidhu Kant Sharma <vidhukant@vidhukant.xyz> | 2022-09-09 21:11:43 +0530 |
commit | de58295210063ed7088b411d0da8ef37b33cb863 (patch) | |
tree | 089e946d9b302db19f9f3bb9ea32554761525365 /.scripts/ram_usage.sh | |
parent | 3d99cb44596006f8b6cfbf0f1f0daad5e54bd164 (diff) |
switched to lemonbar
Diffstat (limited to '.scripts/ram_usage.sh')
-rwxr-xr-x | .scripts/ram_usage.sh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/.scripts/ram_usage.sh b/.scripts/ram_usage.sh new file mode 100755 index 0000000..b611831 --- /dev/null +++ b/.scripts/ram_usage.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +free | awk '/^Mem/ { printf("%.0f%\n", $3/$2 * 100.0) }' | tr -d '\n' |