From e6467017d9858d18e0d15db48a22a03df00067ce Mon Sep 17 00:00:00 2001 From: Fabio Scotto di Santolo Date: Sun, 24 May 2026 18:41:39 +0200 Subject: [PATCH] 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 --- dotfiles/desktop/.config/mpv/mpv.conf | 3 +++ dotfiles/desktop/.config/sway/config | 2 ++ 2 files changed, 5 insertions(+) diff --git a/dotfiles/desktop/.config/mpv/mpv.conf b/dotfiles/desktop/.config/mpv/mpv.conf index 65a438e..8879fbb 100644 --- a/dotfiles/desktop/.config/mpv/mpv.conf +++ b/dotfiles/desktop/.config/mpv/mpv.conf @@ -14,3 +14,6 @@ sub-font-size=48 # Output terminal=yes + +# Inhebit screensaver while playing video +stop-screensaver=yes diff --git a/dotfiles/desktop/.config/sway/config b/dotfiles/desktop/.config/sway/config index 05d1c14..79c1395 100644 --- a/dotfiles/desktop/.config/sway/config +++ b/dotfiles/desktop/.config/sway/config @@ -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