aboutsummaryrefslogtreecommitdiffstats
path: root/AGENTS.md
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-11-10 16:34:04 +0100
committerDanilo M. <danix@danix.xyz>2026-11-10 16:34:04 +0100
commit5a8da8ab392266d5f3bbf3abed61472d6734f31c (patch)
treef5c95722e93515d9bcb527345fe8994333ead568 /AGENTS.md
parent25c0248a3285c30b12df9d228a13e435786b66f7 (diff)
downloaddeck-it-5a8da8ab392266d5f3bbf3abed61472d6734f31c.tar.gz
deck-it-5a8da8ab392266d5f3bbf3abed61472d6734f31c.zip
feat(windows): preview cards and keystone's workspace icons
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>
Diffstat (limited to 'AGENTS.md')
-rw-r--r--AGENTS.md5
1 files changed, 5 insertions, 0 deletions
diff --git a/AGENTS.md b/AGENTS.md
index 0d0bc63..62c163d 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -69,6 +69,11 @@ Keep the server dependency-free apart from that one package.
2s, and `app.js` covers the page with "The PC is asleep" and drops the
lock, so the tablet sleeps too; 15s with no answer at all gives the same
overlay as "The PC is not answering". The first plain answer takes both back.
+- The Windows tab's previews are `grim -T <stableId>` (Hyprland's stableId is
+ the ext-foreign-toplevel identifier), served at `/api/windows/image/<id>`
+ through `Module.image`, only for a window the last state listed; the URL
+ changes every 5s so the browser cache answers in between. Workspace icons
+ come from keystone's `Workspaces.qml` map (`[windows] workspace_icons`).
- Launchers are `[launch] apps`, desktop ids run with `gtk-launch`; label and
icon come from the `.desktop` file. The client sends the id, which must be
configured and installed.