summaryrefslogtreecommitdiff
path: root/AGENTS.md
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 /AGENTS.md
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 'AGENTS.md')
-rw-r--r--AGENTS.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/AGENTS.md b/AGENTS.md
index 28af89c..2431cc0 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -50,7 +50,7 @@ Default when no hosts are given: `localhost`. No SSH required for local use.
## Display and hotkeys
-- **Display** (`internal/display`): One loop – poll events, snapshot from store, count bars, clear only when layout/size changes, draw CPU then mem then net per host, present. Bar width = `winW / numBars`; no gap between bars (avoids 1px artifacts).
+- **Display** (`internal/display`): One loop – poll events, snapshot from store, count bars, clear only when layout/size changes, draw CPU then mem then net per host, present. Bar width = `winW / numBars`; no gap between bars (avoids 1px artifacts). When `maxbarsperrow` is set, bars wrap into multiple rows of equal height; the last row may have fewer (wider) bars.
- **Hotkeys:** 1=cores, 2=mem, 3=net, e=extended (peak line), h=help, q=quit, w=write config, a/y=cpu avg, d/c=net avg, f/v=link scale, arrows=resize. See README "Hotkeys" table.
Network bars aggregate RX/TX across all non-`lo` interfaces per host. Link speed is set via `netlink` config or `--netlink` flag.
@@ -59,7 +59,7 @@ Network bars aggregate RX/TX across all non-`lo` interfaces per host. Link speed
- Prefer the existing `internal/*` package layout; avoid adding new toplevel Go packages unless necessary.
- Version is the single source in `internal/version/version.go`.
-- Config keys are lowercase in `~/.loadbarsrc` (e.g. `netlink=gbit`).
+- Config keys are lowercase in `~/.loadbarsrc` (e.g. `netlink=gbit`, `maxbarsperrow=4`).
- No text/font rendering in the SDL window in the current design; keep feedback on stdout unless the user explicitly asks for in-window labels.
## Testing