summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-02-17 18:49:45 +0200
committerPaul Buetow <paul@buetow.org>2026-02-17 18:49:45 +0200
commit362e3e8112ad36d21bd570aa062e9f7185a8b9e9 (patch)
tree0d7d452bd6a7451d25b6c5064ffeb29bc8505254 /cmd
parentc680422366d7a4fc358917b8c8af5dd5bae792ae (diff)
Add multi-row bar layout with maxbarsperrow config option
When monitoring many servers, bars can become too thin to read. The new maxbarsperrow setting (default 0 = unlimited) wraps bars into multiple rows of equal height when the count exceeds the limit. The last row may have fewer, wider bars filling the full window width. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Diffstat (limited to 'cmd')
-rw-r--r--cmd/loadbars/main.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/cmd/loadbars/main.go b/cmd/loadbars/main.go
index 3d7fe77..555812c 100644
--- a/cmd/loadbars/main.go
+++ b/cmd/loadbars/main.go
@@ -34,6 +34,7 @@ func main() {
flag.StringVar(&cfg.Title, "title", cfg.Title, "Set title bar text")
flag.StringVar(&cfg.SSHOpts, "sshopts", cfg.SSHOpts, "Set SSH options")
flag.BoolVar(&cfg.HasAgent, "hasagent", cfg.HasAgent, "SSH key already known by agent")
+ flag.IntVar(&cfg.MaxBarsPerRow, "maxbarsperrow", cfg.MaxBarsPerRow, "Max bars per row (0=unlimited)")
flag.Parse()