sway: inhibit screensaver during video playback in mpv and browser

Start xdg-desktop-portal-wlr and xdg-desktop-portal-gtk explicitly so
Firefox can route ScreenSaver.Inhibit DBus calls through the portal chain
to the Wayland idle inhibitor. Add stop-screensaver=yes to mpv.conf for
native Wayland idle inhibition during mpv playback.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Fabio Scotto di Santolo
2026-05-24 18:41:39 +02:00
parent 5d45955cec
commit e6467017d9
2 changed files with 5 additions and 0 deletions

View File

@@ -14,3 +14,6 @@ sub-font-size=48
# Output
terminal=yes
# Inhebit screensaver while playing video
stop-screensaver=yes