From f363c7052251da945724eb9c7e6fcd5eebadd393 Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Tue, 10 Nov 2026 19:54:59 +0100 Subject: docs: the fixed dashboard and the actions module Co-Authored-By: Claude Sonnet 5.5 --- AGENTS.md | 17 +++++++++++++++-- README.md | 13 +++++++++---- 2 files changed, 24 insertions(+), 6 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index 62c163d..498d1ce 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -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/`. + mounts those panels and polls `/api/`. 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. diff --git a/README.md b/README.md index b28e2fc..9de9f73 100644 --- a/README.md +++ b/README.md @@ -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. -- cgit v1.2.3