manual tmux-mem-cpu-load, cleanup

This commit is contained in:
2025-08-03 14:05:19 +02:00
parent db6369b9b5
commit 8f596ba2c4
6 changed files with 19 additions and 264 deletions

3
linux/bin/tmux-mem-cpu-load Executable file
View File

@@ -0,0 +1,3 @@
#!/usr/bin/env bash
top -bn1 | \
awk -F'[ \t,]+' '/^top -/{u=$(NF-6)" "$(NF-5);l=$(NF-2)" "$(NF-1)" "$(NF)};/^MiB Mem/{printf "%d/%d MB %s %s",$8,$4,u,l;exit 0}'