swaywm/swayidle

Swayidle blocks screen while playing games with a controller.

gbj1viciado opened this issue · 4 comments

Swayidle doesn't seem to identify joysticks inputs as a activity on the system, putting it to sleep, this doesn't happen if playing games using keyboard.

Yes. Sway manages this, and doesn't open gamepad devices at all.

@gbj1viciado Did you come up with a solution for the time being?

@ammgws Yes actually at least on sway.
for_window [shell=".*"] inhibit_idle fullscreen
will make it so swayidle doesn't block the screen if a full screen app is active. It will still block the screen if you play a game on window mode. for that i used sway-audio-idle-inhibit make it so it won't block the screen if audio is playing.
You can find sway-audio-idle-inhibit here. https://github.com/ErikReider/SwayAudioIdleInhibit

this no longer works