summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-02-13 23:35:17 +0200
committerPaul Buetow <paul@buetow.org>2026-02-13 23:35:17 +0200
commitf7e03c864addd6c46f49558275cbb2e7050783d6 (patch)
treefce4a9e3c7251cf24d662c3a110cd656a96f704e /cmd
parent8ce6aa0a181e123f156ef3d1b75d939f56757ac6 (diff)
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 <cursoragent@cursor.com>
Diffstat (limited to 'cmd')
-rw-r--r--cmd/loadbars/main.go25
1 files changed, 15 insertions, 10 deletions
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 <list> Comma-separated hosts (optional user@host)
--cluster <name> Cluster from %s
- --barwidth <n> Bar width (default 20)
- --height <n> 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 <n> Initial window width (default 1200)
+ --height <n> Window height (default 150)
+ --showcores Show per-CPU bars
+ --showmem Show memory bars
+ --shownet Show network bars
+ --netint <iface> Network interface for net bars (e.g. eth0, enp0s3).
+ Default: first non-lo. Press 'n' in-app to cycle.
+ --netlink <speed> 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)
}