Woolshed's files
Woolshed redraws itself from the files in ~/.config/woolshed while it runs. Here's what each one decides, and how to change them safely.
| File | What it decides | Applied |
|---|---|---|
layouts/<name>.json | the window and its whole look: blocks, theme, fonts, backgrounds, pane frames; one file per layout (main, terminals, win98, any you add) | live |
keys.json | what every key does | live |
settings.json | the person: zoom, sounds, fonts for every layout | live |
mods/<name>/ | panels: small JavaScript programs | live (hot reload) |
programs.json | how programs show (name, icon, tile), on top of the built-in table | live |
icons/ | the shipped program icons | written by Woolshed (put your own elsewhere) |
frame/ | the app's own screens (welcome, ...) | rewritten by Woolshed on every start: don't edit, it won't stick |
account/plan.json | Free or Pro, agents running here, the last error (no secrets) | written by Woolshed: read it, don't edit (the app checks its own signed copy) |
view.json | this screen's selected space/tab/pane, zoom, settled tabs, recent spaces and seen attention (window 1; window n's is view-<n>.json) | written by Woolshed |
screens.json | the windows on other screens: each one's display, place, layout, and whether it's folded away because its display is unplugged | written by Woolshed |
shared.json, data/, seen.json, installed.json, window.json, windows.json | mod state, bookkeeping, where the window was (size, maximized), mods' windows (spots, kept ones) | written by Woolshed |
Shared state is saved atomically in the background, with the latest change winning. If shared.json is invalid, Woolshed logs a warning and keeps it as shared.json.corrupt-<time> before starting empty. woolshed check uses empty shared state in memory and leaves this file untouched.
Changing things safely
- Edits apply at once. If a file is invalid, the app keeps the last good version and writes why to
<name>.error(layout.error,keys.error,settings.error,programs.error). Check after every edit. woolshed check <mod folder>loads a mod once and checks its initial description and eager native elements, including virtual lists and motion. It does not lay out the mod or run deferred rows, nested renders, or later async states. Never call a mod done without a passing check; also try it in the app.- Escape hatch:
ctrl-alt-shift-escapealways works: it sets the shown layout andkeys.jsonaside (*.reset-<time>) and goes back to the defaultmainlayout. Nothing can rebind it.
Seeing the window
woolshed shot [file.png] saves the last rendered window frame as a PNG and prints its absolute path (default: woolshed-shot.png in your current folder). Use it when debugging mod UIs: inspect spacing, colors, terminal images, overlays, popups and floats. It captures the app, not the desktop, at the window’s physical pixel size, even when covered or minimized. No screen-recording permission is needed. Woolshed must be running; before its first frame or during GPU recovery it reports an error instead of a PNG. WOOLSHED_HOME selects which running window to ask, as with status.
Your agents read these same words: Woolshed writes this guide to ~/.config/woolshed/AGENTS.md on every start. In it, “you” is the agent and “the person” is you.