aboutsummaryrefslogtreecommitdiffstats
path: root/assistant/Assistant.qml
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-09-19 18:23:29 +0200
committerDanilo M. <danix@danix.xyz>2026-09-19 18:23:29 +0200
commiteba0c13ad2f50964b6f88950366cb659c0d8b055 (patch)
tree4d26bb384def848a673dd5e469a2aeed8dc1b476 /assistant/Assistant.qml
parentae9636030bb46db6a42dba59ea3fcbf64e541ffe (diff)
downloadquickshell-eba0c13ad2f50964b6f88950366cb659c0d8b055.tar.gz
quickshell-eba0c13ad2f50964b6f88950366cb659c0d8b055.zip
feat(status): auto-present while a game runs
Presentation is worth having automatically while a game runs: it is a fullscreen app that already holds the screen, and the idle lock, DND and breaktimer are all unwanted during it. Detection is a 5s poll for a gamescope process or a Steam game binary, either one enough. The Steam pattern is bracketed so pgrep -f cannot match the sh running the check and report a game forever. The result goes to its own status.gaming file, and presentation becomes the OR of it and status.presentation. That separation is the point: a game ending clears only the gaming half, so a presentation set by hand survives a game session instead of being clobbered on exit.
Diffstat (limited to 'assistant/Assistant.qml')
0 files changed, 0 insertions, 0 deletions