From eb81546609a1decc8e8ac4bc3856b6b17269777d Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Mon, 16 Nov 2026 17:20:29 +0100 Subject: fix(status): statusctl watch counts status.xbox as gaming The shell ORs status.xbox into presentation, so the CLI reads it too: the watch emits the gaming class and toggle is refused while the Xbox runs a game, as for a PC game. Co-Authored-By: Claude Opus 5.5 --- desktop/modules/status/README.md | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'desktop/modules/status/README.md') diff --git a/desktop/modules/status/README.md b/desktop/modules/status/README.md index 1edec03..15bb122 100644 --- a/desktop/modules/status/README.md +++ b/desktop/modules/status/README.md @@ -1,8 +1,10 @@ # status Desktop modes as state: `dnd`, `presentation`, `nolock`, `quiet` and `nolamp`, owned by -the `Status` singleton and stored as files under `$XDG_RUNTIME_DIR`. A sixth, -`status.gaming` is written only by the shell's game detector and `status.xbox` only by deck-it while the Xbox runs a game; neither is a mode `statusctl` exposes, and either one turns presentation on. +the `Status` singleton and stored as files under `$XDG_RUNTIME_DIR`. Two more, +`status.gaming`, written only by the shell's game detector, and `status.xbox`, +written only by deck-it while the Xbox runs a game, are not modes `statusctl` +exposes; either one turns presentation on. ## The files are the interface @@ -117,8 +119,9 @@ without touching the manual half, so a bar widget would otherwise read class with its own icon, and `toggle` is refused while it holds: the detector reasserts the file within its poll, so the write would not stick. `set` is still allowed, since the manual half is worth setting for when the game exits. -The watch therefore follows `status.gaming` as well as its own file, and emits -only on a real change so an unchanged rewrite draws nothing. +The watch therefore follows `status.gaming` and `status.xbox` as well as its +own file, and emits only on a real change so an unchanged rewrite draws +nothing. `status.xbox` counts as gaming in all of this. ## The checks -- cgit v1.2.3