From 55bd116fde79bf75b2e3b8daa1ef985303ef2334 Mon Sep 17 00:00:00 2001 From: Drew Haven Date: Wed, 30 Apr 2025 10:42:35 -0700 Subject: [PATCH] [wayland] Adds clipboard fix for wine --- home-manager/features/gaming.nix | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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";