From 362e3e8112ad36d21bd570aa062e9f7185a8b9e9 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Tue, 17 Feb 2026 18:49:45 +0200 Subject: 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 --- cmd/loadbars/main.go | 1 + 1 file changed, 1 insertion(+) (limited to 'cmd') 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() -- cgit v1.2.3