aboutsummaryrefslogtreecommitdiff
path: root/.config/eww/scripts/getram
diff options
context:
space:
mode:
Diffstat (limited to '.config/eww/scripts/getram')
-rwxr-xr-x.config/eww/scripts/getram2
1 files changed, 2 insertions, 0 deletions
diff --git a/.config/eww/scripts/getram b/.config/eww/scripts/getram
new file mode 100755
index 0000000..791a5a5
--- /dev/null
+++ b/.config/eww/scripts/getram
@@ -0,0 +1,2 @@
+#!/bin/sh
+printf "%.0f\n" $(free -m | grep Mem | awk '{print ($3/$2)*100}')