summaryrefslogtreecommitdiffstats
path: root/.scripts/statusbar/memory
diff options
context:
space:
mode:
Diffstat (limited to '.scripts/statusbar/memory')
-rwxr-xr-x.scripts/statusbar/memory11
1 files changed, 11 insertions, 0 deletions
diff --git a/.scripts/statusbar/memory b/.scripts/statusbar/memory
new file mode 100755
index 0000000..40705c4
--- /dev/null
+++ b/.scripts/statusbar/memory
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+case $BLOCK_BUTTON in
+ 1) notify-send "<b>🧠 Memory hogs:</b>
+$(ps axch -o cmd:15,%mem --sort=-%mem | head)" ;;
+ 3) notify-send "<b>🧠 Memory module:</b>
+- Shows Memory Used/Total.
+- Click to show memory hogs." ;;
+esac
+
+free -h | awk '/^Mem:/ {print $3 "/" $2}'