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

View File

@@ -114,6 +114,8 @@ exec dex --autostart --environment sway
exec gnome-keyring-daemon --start --components=secrets
exec_always ~/.config/sway/scripts/setup-gtk-theme.sh
exec /usr/libexec/xdg-desktop-portal
exec /usr/libexec/xdg-desktop-portal-wlr
exec /usr/libexec/xdg-desktop-portal-gtk
# Audio
exec pipewire