aboutsummaryrefslogtreecommitdiffstats
path: root/deckit
AgeCommit message (Collapse)AuthorFilesLines
12 daysfeat(games): find the PC game and its name, cover and playtimeDanilo M.1-0/+130
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
12 daysfeat(games): parse Steam VDF and emulator game list cachesDanilo M.1-0/+82
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16fix(ui): serve the Propo Nerd Font so icons centreDanilo M.1-3/+5
The plain Inconsolata Nerd Font gives each icon a 500 unit advance while its ink is up to twice that wide, so every Nerd Font button sat right of centre. The Propo variant's advance is the ink, so centring works for all of them; the VM power button's padding workaround goes. The URL becomes /fonts/nerd-propo.ttf because the font is cached for a day. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16fix(xbox): follow a power change quicklyDanilo M.1-1/+7
2026-11-16fix(xbox): say what to do when the console is unreachableDanilo M.1-0/+4
2026-11-16feat(xbox): one games list with installed badgesDanilo M.1-14/+44
2026-11-16feat(xbox): console model, region, flags and installed titlesDanilo M.1-1/+15
2026-11-16fix(xbox): name the client, so xccs answersDanilo M.1-1/+1
2026-11-16fix(xbox): a refused console list no longer blanks the tab; tab iconDanilo M.1-1/+7
xccs answers 403 from its gateway while every other Xbox Live endpoint answers, and that one failure marked the whole tab offline. The console list now fails on its own, the tab says console control is unavailable, and the rest reads. The Xbox tab gets the Xbox glyph like the others. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16fix(xbox): a redrawn hold never fires, and start clears the flagDanilo M.1-0/+1
A power button rebuilt mid-hold lost its pointerup, so letting go early still turned the console off; hold.js now drops a hold whose button is no longer in the page. status.xbox is written 0 on start, in case a crash left it at 1. The "ago" texts move on each minute, and missing storage names and achievement percentages no longer print null. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16fix(xbox): keep the reader alive and the flags rightDanilo M.1-42/+68
- run() survives any exception from tick(); _http turns http.client.HTTPException into OSError. - Signing out or in again resets the slow-read clock, so the profile is read at once instead of after 10 minutes. - After stop() nothing sets status.xbox back to 1; its compare and write is under a lock. - api() uses a copy of the auth taken under the lock; command() maps a missing auth to "not signed in". - Action and sign-in errors carry Xbox Live's own message when the HTTP error body has one. - type_of caches only a 404; other errors retry on the next tick. - Sign-in: start_login is locked, a poller only ends its own flow, and a failed token save ends it as "failed". - state() is loading only until the first presence read. - Drop a stale placeholder comment. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16feat(xbox): Xbox Live reads, presentation flag and console commandsDanilo M.1-1/+134
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16feat(xbox): device code sign-in from the tabDanilo M.1-0/+70
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16feat(xbox): Xbox Live auth chain and token fileDanilo M.1-0/+129
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16feat(xbox): shape Xbox Live responses for the tabDanilo M.1-0/+122
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-13feat(vm): tablet tiles with screen, trends and a power buttonDanilo M.1-15/+82
Each VM is a tile: its screen from virsh screenshot (JPEG through ffmpeg, every 5s while the tab shows), booting until sshd answers at the ssh -G host and port, CPU and RAM trends, and a big power button, tap for the gentle action and hold to force off. A tap on the tile opens a sheet with every action as an icon and the snapshots as a timeline with their age. hold.js is now the one press and hold, K1C's stop included, and vibrates the tablet when it fires; the Windows long-press buzzes too. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-13feat(vm): a VMs tab for libvirt power, snapshots and sshDanilo M.1-0/+187
virsh domstats each poll for state, CPU and memory; managed save, snapshots and the guest agent's IP in a thread every 10s. Actions are the drawer's power set plus snapshot take/revert/delete, names checked against the last state. SSH opens a tab in a running kitty over its remote-control socket and focuses it, else spawns kitty. Destructive buttons are press and hold. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-13feat(tablet): clock fonts and sizes from keystone's Fonts pageDanilo M.3-14/+68
The dim cover's time and date fonts move out of [tablet] clock_font and clock_font_date into keystone's fonts.json: "family" deckit-clock and deckit-date, each served at /fonts/<key>, and the "override" sizes deckit:clock and deckit:date (else deck.css's 8rem and 1.6rem). The date can now have a font of its own. theme.css carries the rules, so a save on the Fonts page reaches an open tablet page within 5s, with no restart and no flags in the tablet state. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-13fix(windows): no peek for a dialogDanilo M.1-2/+7
A transient dialog brought the Windows tab forward like any new window. Hyprland's clients JSON has no parent field, so a window counts as a dialog when it floats and its pid already has another window; peek() skips those. They are still listed in the grid. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-13feat(tablet): a font of the PC's for the dim cover's clockDanilo M.2-1/+18
[tablet] clock_font names a font family installed on the PC; the server finds its file with fc-match and serves it at /fonts/clock, and the cover's clock uses it, the date too while clock_font_date is on (default). fc-match falls back to any font, so the route answers only when the returned family is the one named; otherwise the page font stays. The font file never enters the repo, so a personal-use font can be used on one's own tablet without redistributing it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-13feat(music): covers for embedded art and videosDanilo M.1-3/+50
Haruna sends an embedded audio cover inline as a data:image URL, which the module dropped, and clears mpris:artUrl for every video on purpose so the task manager shows the live window. Serve both at /api/music/image/<key>: the data URL decoded, a local video as one ffmpeg frame (thumbnail filter, 480 px wide), made on first request and kept until the track changes. Only the current track's key answers, so the tablet names a key, never a path. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-13fix(music): accept a fractional track lengthDanilo M.1-1/+1
Haruna reports mpris:length as a float (65816666.666666664), so int() raised and the whole state failed: the widget said nothing was playing while a video played. Parse length and position as floats. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-12feat(stats): show GPU usage on the dashboard chipDanilo M.1-15/+39
xe reports no busy percentage, but its DRM fdinfo carries per-engine cycle counters. The 2s fdinfo pass that sums VRAM now also sums drm-cycles-rcs/ccs per client, and gpu.util is the busier of render (games) and compute (local LLMs) between two passes; a sum could pass 100% with both running. The GPU chip now matches the CPU chip: usage on a trend, temperature on the small line. VRAM and fan move to keystone's performance page. Without usage the temperature keeps the big value. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-12feat(dashboard): show build progress in the build VM slotDanilo M.1-3/+4
The build VM slot showed a busy bar and the job kind. It now reads `sbb-remote jobs --active` (sb-builder 0.13.0), whose running build carries progress: the package being built on the first line, done of total (dependencies included, from the preview's plan) on the right, the op, the package's ETA, the estimated end and failures on the second line, and a bar that fills as packages finish. Other jobs keep the busy bar. Polling only active jobs also stops pulling the whole job history over ssh every 10s. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-12fix(tablet): restore the backlight after a restart or shutdownDanilo M.2-2/+15
The server never ran the modules' stop: `deck-it stop` ends it with SIGTERM and nothing called stop_all, so a shutdown left the tablet dim. A SIGTERM handler now runs stop_all before exiting. The settings from before a dim lived only in memory, so a new server's undim had nothing to put back. They are now kept in ~/.cache/deck-it/dim, and a freshly loaded page asks for undim, since it is never dimmed itself. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11feat(tablet): dim the backlight after an idle timeoutDanilo M.1-2/+43
After [tablet] dim_after seconds with no touch the page covers itself and the tablet module's dim action lowers the backlight to dim_brightness over adb, with auto brightness off meanwhile; an LCD's backlight is the drain, so a dark page alone saves little. The touch on the cover only calls undim, which restores both settings, as does the module's stop. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11fix(windows): skip special-workspace windows that have no idDanilo M.1-1/+1
Hyprland lists a window on a special workspace (e.g. special:dash) with no workspace "id". _state indexed it directly, so one such window raised KeyError on every poll and the Windows tab froze on its last list, with stale previews and a stale active highlight. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11feat(sleep): run deck-it stop on a confirmed shutdownDanilo M.1-0/+16
After the tablet has been told, a PrepareForShutdown runs `deck-it stop` in its own session (it kills the server) so the tunnels, wayvnc and the headless output go cleanly before the inhibitor lets the shutdown on. Login brings everything back on the next boot. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11feat(sleep): tell the tablet when the PC shuts down or rebootsDanilo M.2-19/+23
The delay inhibitor now covers shutdown too, and dbus-monitor also watches PrepareForShutdown. X-Deckit-Sleep carries the reason ("asleep" or "shutting down") and the page shows "The PC is <reason>", dropping the wake lock as on suspend. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11feat(windows): a new window brings the Windows tab forwardDanilo M.1-1/+2
When a window id appears that the last poll did not list, the tablet shows the Windows tab for [windows] peek seconds (default 8, 0 off) and then goes back to the tab it was on. A touch on the page or a tab change meanwhile keeps it there; another new window restarts the timer. The hook is generic: a panel's peek(state) returns seconds, app.js does the switching. The first poll only learns what is open, and an error state keeps what it knew, so neither triggers it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11feat(dashboard): pending updates in the system row, icons, opencode logoDanilo M.1-1/+28
The system row now ends with "N updates available", keystone's "to install" count from updatesctl ([dashboard] updates; empty hides it). stats re-reads it in a thread every 5 minutes, so the NFS reads behind it never stall the 1 s poll. The codename reads "-current" next to the OS name, so it no longer looks like part of the kernel. Kernel and uptime get tux and clock icons, the row is tighter, and its separators are a "|" in the first Hyprland border colour instead of an unreadable dot. The opencode spending card shows the opencode logo by its title. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10fix(dashboard): review fixesDanilo M.1-1/+4
- The OBS slot has no one-tap stop: a tap opens the OBS tab, so a stray touch cannot end a recording. - Scrolling lines are measured once their slot is on screen, and every slot again when one comes or goes. - The lock watcher survives a missing pidof. - Trend gradients are in user space, so a flat line still paints. - Uptime under an hour shows minutes. - The shell no longer imports panel files for the modules the dashboard draws. - The spec matches the build VM and OBS slots and the error wording. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10feat(actions): dashboard actions and the tablet following the lockDanilo M.1-0/+91
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10feat(config): the dashboard's action listDanilo M.1-0/+5
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10feat(music): a volume slider with a mute toggle, icon buttonsDanilo M.1-2/+7
The Vol-, Mute and Vol+ buttons give way to a mute toggle (its icon shows the state) and a 0-100 slider that sets the default sink with wpctl as it moves. Previous, play/pause and next are Nerd Font glyphs instead of the tablet's Unicode symbols. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10feat(stats): an OS row with logo, kernel and uptimeDanilo M.1-0/+12
The System card's small 'up Nh' line becomes a full-width tile: the distro's Nerd Font logo, NAME and VERSION_ID from /etc/os-release in large type, the codename and kernel release below, and the uptime large on the right. An unknown distro gets Tux. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10feat(stats): processor and card names, both network rates largeDanilo M.1-1/+33
The CPU tile is labelled with /proc/cpuinfo's model name, trimmed of core counts and trademarks; the GPU tile with lspci's marketing name for the xe card. The network tile shows download and upload side by side at the same size. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10feat(llm): desktop-assistant usage as Local AgentDanilo M.1-9/+9
The LLM usage card gets a third section, the desktop-assistant program from llm-cost-dashboard, with the same session and total stats as opencode. The per-program aggregation now takes the program. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10fix(server): read a refused POST body before answeringDanilo M.1-6/+18
A POST refused before its body was read (403, 401, 404, a wrong type or size) closed the socket on unread bytes; the kernel reset it and the client saw a broken pipe instead of the answer. test_upload_limits hit this about once in 40 runs (BrokenPipeError), and it slipped into the previous commit's suite run. _refuse reads up to 1 MiB of the body first; 0 failures in 300 runs of the affected tests after. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10feat(assistant): the transcript as chat bubbles with avatarsDanilo M.2-5/+13
Questions sit on the right in an accent bubble with the user's avatar (`[assistant] user_avatar`, served at /api/avatar); replies on the left in a surface bubble with the assistant's, a "…" bubble while a reply has no text yet. The assistant's avatar is the background picture itself, zoomed by CSS onto `[assistant] face` ([centre x, centre y, size] in its pixels), so nothing is cropped on the PC; the page loads the picture once for its real size. Unset, both are plain circles. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10feat(windows): preview cards and keystone's workspace iconsDanilo M.3-4/+50
Each window is a card like the Alt+Tab switcher's: a preview in the window's shape (grim -T on Hyprland's stableId, also for hidden workspaces, refreshed every 5 s), the desktop top left, close top right, the app icon bottom left, each on its own scrim, the title below. Tap focuses, a long press opens the move menu at the press point (the grid re-renders under a title that changes every second, so the card itself may already be gone), and Chrome's image menu is suppressed. Module.image serves module images at /api/<module>/image/<key>; windows answers only for a window the last state listed. Workspace tiles, card markers and the move menu use the icons from keystone's Workspaces.qml, falling back to the number; the icon route also searches the theme's places, preferences and categories folders, where two of them live. The workspaces are centred. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10feat(assistant): a faint picture behind the Assistant tabDanilo M.1-0/+13
`[assistant] background` names an image (none by default); the server serves it at /api/bg behind the token, and the tab shows its subject from the right side, desaturated and faded out on every side so no edge shows: opacity .24 while the chat is empty, .07 during a conversation. Tuned on the 1280x800 tablet. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10feat: the PC tells the tablet it is going to sleepDanilo M.2-1/+86
deckit/sleep.py holds an elogind delay inhibitor and watches PrepareForSleep with dbus-monitor. On a suspend the server marks its answers with X-Deckit-Sleep for 2 s, so the tablet's next poll shows "The PC is asleep" at once and drops its wake lock, then lets the inhibitor go. On resume it takes the inhibitor again. The 15 s silence fallback stays, worded "The PC is not answering", for a crash or a dropped tunnel. The inhibitor's command is `tail --pid=<server>` and dbus-monitor has a parent-death signal, so a killed server leaves no lock delaying every suspend (checked with kill -9: both gone within 2 s). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10fix(assistant): voice-only tab, tools in an overlay, silent clips droppedDanilo M.1-7/+1
The first voice question on the tablet was a 0.66 s silent clip: the mic gave no feedback until the next poll, an extra tap made a near-empty recording, and the model invented a question from the silence. The mic now turns red on the tap itself, and a clip whose loudest sample is under 1500 (room noise measured ~260, speech 15000+) is not sent. Typing happens on the PC, so the text field, send button and the ask action are gone; the bar is a large mic and a stop icon. The presets and ops move into an overlay opened from the header, so the transcript gets the screen. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10fix(assistant): final review fixesDanilo M.2-1/+6
Hidden main no longer shows over the offline card, Enter while busy no longer stops a reply, autoscroll is tracked by a scroll listener so it works while the tab is hidden, and the catalog is retried on each daemon reconnect. Mic start is guarded against double taps and recorder failures, a denied mic can be retried, a failed ask restores the text, the model panel closes on any outside tap, and the font path is cached only once found. Plus small CSS and spec corrections. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10fix(assistant): review fixes: robust reader, op ownership, no stuck opsDanilo M.1-19/+52
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10feat(assistant): presets and ops on a file picked on the PCDanilo M.1-2/+100
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10feat(assistant): daemon client with chat, model and voice actionsDanilo M.1-0/+114
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10feat(assistant): fold daemon events into the tab's stateDanilo M.1-0/+106
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10feat(server): serve the Nerd Font at /fonts/nerd.ttfDanilo M.1-0/+15
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>