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 | |
| 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>
| -rw-r--r-- | AGENTS.md | 17 | ||||
| -rw-r--r-- | README.md | 13 |
2 files changed, 24 insertions, 6 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. @@ -3,8 +3,8 @@ Turns an Android tablet into a second monitor, a stream-deck and an always-on control surface for a Slackware Hyprland desktop. -A web page on the tablet has tabs for system stats, music, windows, OBS and -LLM/build status. A second headless output is streamed to AVNC as an extra +A web page on the tablet has tabs for a dashboard, windows, OBS, the K1C +printer and the assistant. A second headless output is streamed to AVNC as an extra monitor. Everything runs on the PC and reaches the tablet through `adb reverse`; there is no cloud, account or app-store install. @@ -50,8 +50,7 @@ launchers included, with a Restart button to apply a save. ## Usage -- Tabs: **Dashboard** (draggable/resizable cards, each foldable to its title - bar), **Windows**, **OBS**, **K1C**, **Assistant**. Swipe the content sideways to change +- Tabs: **Dashboard**, **Windows**, **OBS**, **K1C**, **Assistant**. Swipe the content sideways to change tab; ⟳ at the top right reloads the page. - `deck-it install` prints the `exec-once` line for USB autostart. - `config.toml` holds the defaults: display, Wi-Fi address, workspaces, @@ -60,6 +59,12 @@ launchers included, with a Restart button to apply a save. them key by key and needs only what differs; keystone writes it. - The OBS tab is a stream-deck: scenes, sources, audio sliders, transitions. Long-press a source to open its properties dialog in OBS. +- The Dashboard is one fixed screen. A top band of chips shows system stats, + Claude usage and the tablet's battery and Wi-Fi; music and spending sit + below. A row appears only while something is running (a print, a build, an + OBS recording or stream), and a tap opens its tab. Action icons at the bottom + take a screenshot or lock the PC; the tablet's screen sleeps and wakes with + the PC's lock, however it was locked. - The Windows tab has keystone's workspace icons, icon launchers, and a preview card per window (as in the Alt+Tab switcher): tap to focus, × to close, a long press to move it to another desktop. |
