mirror of
https://github.com/fscotto/infra.git
synced 2026-05-30 15:39:58 +00:00
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:
@@ -14,3 +14,6 @@ sub-font-size=48
|
||||
|
||||
# Output
|
||||
terminal=yes
|
||||
|
||||
# Inhebit screensaver while playing video
|
||||
stop-screensaver=yes
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user