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: #