From f7e03c864addd6c46f49558275cbb2e7050783d6 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Fri, 13 Feb 2026 23:35:17 +0200 Subject: Document hotkeys in README; fix display/config; net interface help - README: add Hotkeys section (1,2,3,e,h,n,q,w,a,y,d,c,f,v,arrows) - README: network interface and netlink config docs - Display: default window width 1200; clear bar slots to fix CPU/mem/net mixing - Display: numBars count only non-nil hosts (layout matches draw) - Display: network bars (key 3), net interface choice and n=cycle - Display: extended peak line (e), cpu/net avg keys (a,y,d,c) with feedback - Config: default barwidth 1200; netint/netlink in --help - Collector: parse_test Linux-style net stats Co-authored-by: Cursor --- cmd/loadbars/main.go | 25 +++++++++++++++---------- 1 file changed, 15 insertions(+), 10 deletions(-) (limited to 'cmd') diff --git a/cmd/loadbars/main.go b/cmd/loadbars/main.go index fc053be..62b90db 100644 --- a/cmd/loadbars/main.go +++ b/cmd/loadbars/main.go @@ -114,15 +114,20 @@ Usage: loadbars [HOSTS...] [OPTIONS] Options: --hosts Comma-separated hosts (optional user@host) --cluster Cluster from %s - --barwidth Bar width (default 20) - --height Window height (default 150) - --showcores Show per-CPU bars - --showmem Show memory bars - --shownet Show network bars - --extended Extended display (peak line) - --help This help - --version Print version - -Press 'h' during execution for hotkeys. See README for more. + --barwidth Initial window width (default 1200) + --height Window height (default 150) + --showcores Show per-CPU bars + --showmem Show memory bars + --shownet Show network bars + --netint Network interface for net bars (e.g. eth0, enp0s3). + Default: first non-lo. Press 'n' in-app to cycle. + --netlink Link speed for %% (gbit, 10gbit, mbit, 100mbit, or number). + Default: gbit. + --extended Extended display (peak line) + --help This help + --version Print version + +Config: netint and netlink can be set in ~/.loadbarsrc. Press '3' then see +stdout for which interface is used; press 'n' to cycle. Press 'h' for hotkeys. `, version.Version, constants.CSSHConfFile) } -- cgit v1.2.3