diff options
| author | Danilo M. <danix@danix.xyz> | 2026-11-10 19:54:59 +0100 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-11-10 19:54:59 +0100 |
| commit | f363c7052251da945724eb9c7e6fcd5eebadd393 (patch) | |
| tree | f943a3a3c012516ee501e4a8bacfbc48515cee39 /AGENTS.md | |
| parent | 24a83b7019cd424b27ad95f1d056581096a1e5b9 (diff) | |
| download | deck-it-f363c7052251da945724eb9c7e6fcd5eebadd393.tar.gz deck-it-f363c7052251da945724eb9c7e6fcd5eebadd393.zip | |
docs: the fixed dashboard and the actions module
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
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. |
