diff options
| author | Paul Buetow <paul@buetow.org> | 2026-02-17 18:49:45 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-02-17 18:49:45 +0200 |
| commit | 362e3e8112ad36d21bd570aa062e9f7185a8b9e9 (patch) | |
| tree | 0d7d452bd6a7451d25b6c5064ffeb29bc8505254 /cmd | |
| parent | c680422366d7a4fc358917b8c8af5dd5bae792ae (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.go | 1 |
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() |
