diff options
Diffstat (limited to 'AGENTS.md')
| -rw-r--r-- | AGENTS.md | 17 |
1 files changed, 15 insertions, 2 deletions
@@ -20,7 +20,20 @@ Keep the server dependency-free apart from that one package. registry discovers files lazily. `state()` is read, `actions` are allow-listed, and the client sends ids, never commands. - The page shell (`static/app.js`) builds tabs from each panel's `tab` property, - mounts panels and polls `/api/<module>`. + mounts those panels and polls `/api/<module>`. The Dashboard tab is + `static/dashboard.js`: one fixed screen with no drag, resize or fold. A top + band of chips (stats, Claude usage from `llm`, tablet battery and Wi-Fi), + music and spending (`llm`) always on, a running row of one to three busy + modules, and the action icons. A panel that can be running exports + `busy(state)` and `slot(state, el)` (`k1c.js`, `sbbuilder.js`, `obs.js`); a + slot builds its markup once and then only sets text, so its scrolling lines + are not restarted. Hyprland's border colours (`--udt-border-1..3`) colour + the trend lines and progress bars and rotate around the action icons. +- `actions` serves the Dashboard's icons: `[dashboard] actions`, ids from + `config.ACTION_IDS`, each a fixed command (`screenshot` runs + `qar-scrotmenu.sh`, `lock` runs `lock.sh`). Its watcher checks `pidof + hyprlock` every 2s and sends the tablet `KEYCODE_SLEEP` on lock and + `KEYCODE_WAKEUP` on unlock, for every lock, not only the button. - `deckit/theme.py` reads UDT's palette (`~/.config/rofi/udt/palette.rasi`) and `~/.cache/udt/udt-border.lua`; the frontend uses only those CSS variables. Text size is keystone's (`~/.config/keystone/fonts.json`, `override.deckit` @@ -81,7 +94,7 @@ Keep the server dependency-free apart from that one package. ## Conventions - New behaviour goes in a module under `deckit/modules/`, not in the server. -- Panels keep their scoped wrapper class (`.music`, `.sbb`, `.llm`, `.windows`) +- Panels keep their scoped wrapper class (`.music`, `.k1c`, `.windows`) because the CSS is scoped to it. - Hyprland Lua: a dispatcher must be wrapped in `hl.dispatch(...)` to execute. `hyprctl eval` alone only builds the dispatcher object. |
