From 21c07e04daedac6ae8dbed3813e09c8737cf10a8 Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Wed, 18 Nov 2026 16:44:09 +0100 Subject: docs: the games module and the now playing card Co-Authored-By: Claude Opus 5.5 --- AGENTS.md | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'AGENTS.md') diff --git a/AGENTS.md b/AGENTS.md index 0629a70..2b3226e 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -159,6 +159,14 @@ Keep the server dependency-free apart from that one package. last active one). A `data:` cover, or a local video with no cover (Haruna sends none), is served at `/api/music/image/`, a video as an `ffmpeg` frame; only the current track's key answers. +- `games` finds a PC game among `hyprctl clients`: class `steam_app_`, + or `pcsx2`/`duckstation` with a window title other than the emulator's + name. Steam's name, cover and minutes come from its appmanifest, + librarycache and localconfig.vdf; an emulator's from the title, matched in + its `cache/gamelist.cache` for the serial, then `covers/` and + `playtime.dat`. The cover is served at `/api/games/image/`, current + game only. The Dashboard's music card (`music.js` `pickGame`) shows a PC + game, else the Xbox's `playing`, instead of the track. - 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. -- cgit v1.2.3