diff options
Diffstat (limited to '.config/lemonblocks/modules/mem_usage.sh')
-rwxr-xr-x | .config/lemonblocks/modules/mem_usage.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/.config/lemonblocks/modules/mem_usage.sh b/.config/lemonblocks/modules/mem_usage.sh new file mode 100755 index 0000000..6b939eb --- /dev/null +++ b/.config/lemonblocks/modules/mem_usage.sh @@ -0,0 +1,4 @@ +#!/bin/bash + +mem=$(free -m | grep Mem: | awk '{print$3 / $2 * 100}') +printf " MEM: %.0f%% " $mem |