summaryrefslogtreecommitdiffstats
path: root/.local/bin/status/sb-memory
diff options
context:
space:
mode:
authorJoe <bousset.rudy@gmail.com>2022-08-16 13:16:30 +0200
committerJoe <bousset.rudy@gmail.com>2022-08-16 13:16:30 +0200
commit06f0189845b205f2bc638d0015142e10f05a8a71 (patch)
tree3253a7c014a9c75f9fbdd3d974336f1aae793131 /.local/bin/status/sb-memory
parentsbupdate (diff)
downloaddotfiles-bsd-06f0189845b205f2bc638d0015142e10f05a8a71.tar.gz
dotfiles-bsd-06f0189845b205f2bc638d0015142e10f05a8a71.tar.bz2
dotfiles-bsd-06f0189845b205f2bc638d0015142e10f05a8a71.tar.xz
dotfiles-bsd-06f0189845b205f2bc638d0015142e10f05a8a71.tar.zst
dotfiles-bsd-06f0189845b205f2bc638d0015142e10f05a8a71.zip
update
Diffstat (limited to '')
-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)))}'