diff options
| author | Danilo M. <danix@danix.xyz> | 2026-11-18 16:44:09 +0100 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-11-18 16:44:09 +0100 |
| commit | 21c07e04daedac6ae8dbed3813e09c8737cf10a8 (patch) | |
| tree | e4dc867562ca8084a9586e4c9bc61214df061d43 | |
| parent | 6275aa8a064c433e5130e51268b4d937ccf2b631 (diff) | |
| download | deck-it-21c07e04daedac6ae8dbed3813e09c8737cf10a8.tar.gz deck-it-21c07e04daedac6ae8dbed3813e09c8737cf10a8.zip | |
docs: the games module and the now playing card
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
| -rw-r--r-- | AGENTS.md | 8 | ||||
| -rw-r--r-- | config.toml | 1 |
2 files changed, 9 insertions, 0 deletions
@@ -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/<key>`, a video as an `ffmpeg` frame; only the current track's key answers. +- `games` finds a PC game among `hyprctl clients`: class `steam_app_<id>`, + 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/<serial>` and + `playtime.dat`. The cover is served at `/api/games/image/<key>`, 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. diff --git a/config.toml b/config.toml index 45609fa..3083dec 100644 --- a/config.toml +++ b/config.toml @@ -43,6 +43,7 @@ gpu_mem_total = "12G" # deckit/modules/ is picked up automatically; add a flag here only to turn it off. stats = true music = true +games = true windows = true obs = true llm = true |
