Inhibit idle for fullscreen Steam games, not just the Steam client - #11272
Open
RandomJerk wants to merge 1 commit into
Open
Inhibit idle for fullscreen Steam games, not just the Steam client#11272RandomJerk wants to merge 1 commit into
RandomJerk wants to merge 1 commit into
Conversation
apps/steam.lua inhibits idle for class "steam" (Big Picture), but games run as steam_app_<appid> and never matched. Gamepad input goes straight to the game and never through the compositor, so a fullscreen game played on a controller looks idle to Hyprland and the screensaver/lock fire mid-game. Add a fullscreen-scoped idle_inhibit rule for steam_app_.* alongside the existing client rule. Windowed or alt-tabbed games keep normal idle behaviour. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01U1r4YEdkmTPPJUYHB5eqTG
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes the gap described in #11271.
Problem
default/hypr/apps/steam.luasetsidle_inhibit = "fullscreen"for classsteam— the Steam client / Big Picture. Games don't run under that class; they run assteam_app_<appid>, so the rule never applies to the window that's actually fullscreen during play.Gamepad input goes from Steam Input straight to the game via SDL and never passes through the compositor, so a fullscreen game played on a controller looks completely idle to Hyprland.
idle.screensaverfires over the match at 150 s,idle.lockat 300 s. Steam's own inhibit and gamemode'sinhibit_screensaverdon't help — both use theorg.freedesktop.ScreenSaverD-Bus interface, which Hyprland doesn't implement.Change
One rule added next to the existing client rule:
float = true, which games must not get."steam.*"on the opacity line). Hyprland matches rule regexes against the whole class, sosteam_app_.*is a full match; verified against a throwaway window that the unanchored form does produce an inhibitor.fullscreenso a windowed or alt-tabbed game returns to normal idle behaviour.respectInhibitors: trueinshell/plugins/services/idle/Service.qml), so nothing else changes.Verification
Omarchy 4.0.3-1, Hyprland 0.56.2, NVIDIA 610.57.04. Rule applied, Proton/XWayland game relaunched,
hyprctl -j clientspolled:Seventeen minutes on controller only, no screensaver. Without the rule the same session produced the screensaver at 150 s with
inhibitingIdle=False.Tests
./test/all: 231 of 236 test files pass. The five that fail (config,locate,snapper,unowned-system-paths,update-lockundertest/shell.d/) fail identically on untouchedquattroin this environment, so they're pre-existing and unrelated to this change.🤖 Generated with Claude Code
https://claude.ai/code/session_01U1r4YEdkmTPPJUYHB5eqTG