summaryrefslogtreecommitdiffstats
path: root/.local/bin/status/sb-memory
diff options
context:
space:
mode:
Diffstat (limited to '.local/bin/status/sb-memory')
-rwxr-xr-x.local/bin/status/sb-memory3
1 files changed, 3 insertions, 0 deletions
diff --git a/.local/bin/status/sb-memory b/.local/bin/status/sb-memory
new file mode 100755
index 0000000..79049cb
--- /dev/null
+++ b/.local/bin/status/sb-memory
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+sysctl -n hw.usermem hw.physmem | xargs | awk '{printf ("﬙ %2.2fGiB/%2.2fGiB\n", ($1 / (1024 ^ 3)), ($2 / (1024 ^ 3)))}'