diff --git a/home-manager/features/gaming.nix b/home-manager/features/gaming.nix index 4f7798b..6647cc1 100644 --- a/home-manager/features/gaming.nix +++ b/home-manager/features/gaming.nix @@ -50,6 +50,10 @@ in # WoW addon updater wowup-cf + + # For clipboard management. See below. + wl-clipboard + xclip ]; # xdg.dataFile."applications/wowup-cf.desktop" = { @@ -57,6 +61,14 @@ in # source = "${patched-desktop}/wowup-cf.desktop"; # }; + wayland.windowManager.hyprland.settings.exec-once = [ + # Hyprland doesn't paste into Wine apps. This program is a workaround. + # See https://github.com/hyprwm/Hyprland/issues/2319 + # -t text = Only handle text + # -w xclip -selection clipboard = Watch for events and invoke xclip + "wl-paste -t text -w xclip -selection clipboard" + ]; + # wowup needs options to work under wayland. xdg.desktopEntries.wowup-cf = local.electronDesktopEntry { name = "WowUp";