# Herdr Retro (pt-BR) A navy, pixel-type take on Herdr's main layout, in Brazilian Portuguese. The sidebar groups spaces and agents under colored machine headers in a DOS-style pixel font, and every agent is a card with a generated 8×8 pixel sprite, a status badge (PARADO, TRABALHANDO, PRECISA DE VOCÊ, PRONTO), the project name and the program running it. ![Herdr Retro](preview.png) ## What you see Left to right, the same regions as Herdr's `main` layout: - **Sidebar (268 px, `chrome` #191a27).** - Brand row (shipped `workspace-chrome`). - **ESPAÇOS** (weight 2): a 14 px square icon (fill `input`, 2 px `dim` border) and the title in PxPlus IBM VGA 8x16, 15 px, `muted`. One header per machine, always shown, even with only this computer: monitor/server icon, the machine name in upper case (this computer: "ESTA MÁQUINA"), 14 px bold pixel type in the machine's color, a 2 px line in that color at 33% alpha filling the row, the space count and a `+`. Machine colors in order: #ff7a45 (this computer), #f5a524, #3fd0c9, #bb9af7, #7aa2f7, #9ece6a. Space rows: name in 15 px pixel type, `muted`; the active one is `foreground` on `selected` with a 3 px #f5a524 bar on the left. Branch and ahead/behind follow the name as in the shipped mod. - **AGENTES** (weight 3): same title style, "N OCUPADOS" on the right (`working` color when N > 0), then the shipped sort button. One header per machine as above, ending in "working/total". Each agent is a card: 6 px padding, 2 px border, fill and border per machine (#2a1f3d/#5b3f80 for this computer, then #1f2438/#3b4466, #1b2e33/#2f5a5e, #2d2238/#5e4a7a); the focused agent's border is #f5a524. Inside: a 92×92 box (#14151f, 1 px border) with the sprite (7 px cells), a 3 px dot top-left in the machine color and a boxed "z" top-right while idle; then a column with the status badge (13 px pixel type, 1 px border in the status color), the project name (19 px bold pixel type) and the subtitle (12 px, `muted`). - Footer (shipped `workspace-chrome`). - **Work column**: shipped tabs, panes as cards (radius 10, accent focus border #8fa6e6), Files/Changes panels and status bar, unchanged. Theme `retro` (layout-owned): terminal background #1e1f2e, foreground #d4d6e8, Tokyo-Night-like ANSI colors, canvas #1a1b28, border #2c2f47. ## How it behaves - **Status**: `idle` → PARADO in `muted` with the "z"; `working` → TRABALHANDO in `working`, badge pulses (opacity 0.45→1, 1.1 s) and the sprite bobs 3 px (0.7 s); `blocked` → PRECISA DE VOCÊ in `blocked`, pulsing; `done` → PRONTO in `done`. - **Card title**: the space name; when the space is `~`, the basename of the agent pane's folder instead. - **Card subtitle**: the tab's own title or name; an automatic tab number is replaced by the program name ("Claude Code", "Codex"). - **Sprite**: hashed from the agent's address, so each agent keeps its look. Left half random, mirrored; two colors from a fixed palette; eyes on row 4. - Click a card: `pane.focus`. Right-click: pin/unpin (`terminal.pin`), pinned cards show a pin icon and come first. Click a machine header to fold it. - Sub-agents still show as tree rows under their card (shipped behavior). - Narrow sidebar (< 160 px): the shipped compact rail. ## Built from - `layouts/retro.json`: a clone of Herdr's `main` (0.1.12) with `"theme": "retro"`, `"preview": "layouts/retro.png"`, block `spaces` → mod `retro-spaces` (weight 2) and block `agents` → mod `retro-agents` (weight 3). Everything else points at shipped mods. - `mods/retro-spaces`: a clone of shipped `spaces` with the header, title and row changed and strings in Portuguese. - `mods/retro-agents`: a clone of shipped `agents`; agents are grouped by machine (pinned first, then the chosen sort), rows are cards, sprite code is in `sprite()`. Uses `agents`, `panes`, `machines`, `spaces`, `terminals`, `run("pane.focus" | "terminal.pin" | "terminal.peek")`, `setAgentOrder`. - `themes/retro.json`, `mods/retro-agents/fonts/PxPlus_IBM_VGA_8x16.ttf` (CC BY-SA 4.0, VileR / int10h.org). - No network, no `exec` beyond the shipped `spaces` git calls, no `hc` beyond the shipped `machine ls/add/rm`. ## Watch out - A mod can't import another mod's file: `PX` and `MACHINE_COLORS` are defined in both mods; keep them in sync. - The pixel font loads from `retro-agents/fonts`; using `retro-spaces` alone falls back to the default font. - `herdr-app shot` returns the last rendered frame: with the window on another workspace it is stale. - Only these two mods are translated; the shipped tabs, status bar, panels, menus and Settings stay in English (see herdrdev/herdr-app#187). ## Done when - `testes/verificar.sh` passes (JSON, references, `herdr-app check`). - `layout.switch {"name":"retro"}` shows ESPAÇOS and AGENTES headers in pixel type, an "ESTA MÁQUINA" header, and one card per running agent with the right badge. - An agent starting a turn shows TRABALHANDO, pulsing, and "1 OCUPADOS".