summaryrefslogtreecommitdiffstats
path: root/.local/bin/status/sb-memory
diff options
context:
space:
mode:
authorjoe <rbo@gmx.us>2025-10-02 11:14:43 +0200
committerjoe <rbo@gmx.us>2025-10-02 11:14:43 +0200
commita190993b0579dfaacd5fe75a49fcb3214e2cb1bf (patch)
tree128708ae1ca9f6e5ab433e73542d7b52125357df /.local/bin/status/sb-memory
parentup (diff)
downloaddotfiles-bsd-a190993b0579dfaacd5fe75a49fcb3214e2cb1bf.tar.gz
dotfiles-bsd-a190993b0579dfaacd5fe75a49fcb3214e2cb1bf.tar.bz2
dotfiles-bsd-a190993b0579dfaacd5fe75a49fcb3214e2cb1bf.tar.xz
dotfiles-bsd-a190993b0579dfaacd5fe75a49fcb3214e2cb1bf.tar.zst
dotfiles-bsd-a190993b0579dfaacd5fe75a49fcb3214e2cb1bf.zip
up
Diffstat (limited to '')
-rwxr-xr-x.local/bin/status/sb-memory15
1 files changed, 0 insertions, 15 deletions
diff --git a/.local/bin/status/sb-memory b/.local/bin/status/sb-memory
deleted file mode 100755
index 0786b85..0000000
--- a/.local/bin/status/sb-memory
+++ /dev/null
@@ -1,15 +0,0 @@
-#!/bin/sh
-
-echo -n "^c#b8bb26^ "
-case $(hostname -s) in
- mother|po-rbo)
- free | sed -n '2p' | awk '{print int(100 - ($7 * 100 / $2))"%"}'
- ;;
- mars)
- sysctl -n hw.physmem \
- hw.pagesize \
- vm.stats.vm.v_inactive_count \
- vm.stats.vm.v_free_count \
- vm.stats.vm.v_cache_count | xargs | awk '{printf ("%2.2fG/%2.2fG\n", ($1 / (1024 ^ 3)) - (($3 + $4 + $5) * $2 / (1024 ^ 3)), ($1 / (1024 ^ 3)))}'
- ;;
-esac