Skip to content

Keep screensaver/lock from engaging during Steam games - #11083

Closed
Rooke wants to merge 1 commit into
omacom:quattrofrom
Rooke:steam-game-idle-inhibit
Closed

Rooke wants to merge 1 commit into
omacom:quattrofrom
Rooke:steam-game-idle-inhibit

Conversation

@Rooke

@Rooke Rooke commented Sep 10, 2026

Copy link
Copy Markdown

Summary

  • Steam's client window already inhibits idle while fullscreen (default/hypr/apps/steam.lua), but the actual game runs in a separate window that Steam classes steam_app_<appid> (true for both native Linux titles and Proton). That window wasn't covered, so the screensaver and lock still engaged mid-game — controller/gamepad input doesn't register as user activity to the compositor.
  • Adds one window rule following the exact pattern already used for Steam's own window and for RetroArch/Moonlight/GeForce Now: idle_inhibit = "fullscreen" scoped to ^steam_app_[0-9]+$, so idle suppression is tied to the game window actually being on screen, not to input.

Test plan

  • Added test/shell.d/steam-idle-inhibit-test.sh asserting the new rule is present
  • ./test/all — no new failures (5 pre-existing, unrelated failures reproduce identically on a clean checkout of this branch's base: missing sibling omarchy-pkgs checkout, two scripts losing their exec bit through the fork/clone, and one shell-IPC sandbox flake)
  • Verified manually against Hyprland's own window-rule semantics; idleinhibit fullscreen, class:^(steam_app_) is the documented community-standard fix for this exact issue (see https://forum.hypr.land/t/window-rule-for-games/988)

🤖 Generated with Claude Code

https://claude.ai/code/session_015Pt2Qi6SP9TN6Rmr9LiL4V

Steam's client window inhibits idle while fullscreen, but the actual
game runs in a separate window classed steam_app_<appid> (both native
and Proton titles). That window wasn't covered, so the screensaver and
lock still kicked in mid-game since gamepad/controller input doesn't
register as user activity.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015Pt2Qi6SP9TN6Rmr9LiL4V
@bjarneo

bjarneo commented Sep 21, 2026

Copy link
Copy Markdown
Member

Automated duplication check: this pull request looks similar to #9667, which covers the same fullscreen idle-inhibit for Steam game windows. I keep that one open and close this one to consolidate review.

If you feel this is the wrong decision, please open the PR again with a note on the difference.

@bjarneo bjarneo closed this Sep 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants