From 05e604fe27bce9a024b0edebba21f7d7fa4f3d34 Mon Sep 17 00:00:00 2001 From: nnduc Date: Fri, 25 Sep 2026 14:37:26 +0700 Subject: [PATCH] adaptive sync --- sway/config | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sway/config b/sway/config index a6a84da..8ed5263 100755 --- a/sway/config +++ b/sway/config @@ -48,6 +48,9 @@ output DP-1 mode 1920x1080@120Hz adaptive_sync off allow_tearing yes # after being restarted via systemd earlier. exec --no-startup-id systemctl --user import-environment WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP DISPLAY exec --no-startup-id hash dbus-update-activation-environment 2>/dev/null && dbus-update-activation-environment --systemd WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP DISPLAY +# gamemoded keeps the env it started with (e.g. from an i3 session); restart it +# so its swaymsg hooks (~/.config/gamemode.ini) can reach this sway. +exec --no-startup-id systemctl --user import-environment SWAYSOCK && systemctl --user try-restart gamemoded # # Example configuration: #