From 760af68c1dd68513894853539b980ba9ce90c530 Mon Sep 17 00:00:00 2001 From: ItsDrike Date: Mon, 24 Jun 2024 00:15:19 +0200 Subject: [PATCH] Remove wl-clip-persist (breaks clipboard) When wl-clip-persist service is running, it seems that copying from xwayland applications becomes impossible. This is way too big of a bug to justify the benefit of this service. --- home/services/default.nix | 1 - home/services/wl-clip-persist.nix | 28 ---------------------------- 2 files changed, 29 deletions(-) delete mode 100644 home/services/wl-clip-persist.nix diff --git a/home/services/default.nix b/home/services/default.nix index 68ec314..9799edc 100644 --- a/home/services/default.nix +++ b/home/services/default.nix @@ -1,6 +1,5 @@ _: { imports = [ ./dunst.nix - ./wl-clip-persist.nix ]; } diff --git a/home/services/wl-clip-persist.nix b/home/services/wl-clip-persist.nix deleted file mode 100644 index fa15668..0000000 --- a/home/services/wl-clip-persist.nix +++ /dev/null @@ -1,28 +0,0 @@ -{ - osConfig, - pkgs, - lib, - ... -}: let - inherit (lib) mkIf; - - cfgIsWayland = osConfig.myOptions.home-manager.wms.isWayland; -in { - config = mkIf cfgIsWayland { - systemd.user.services."wl-clip-persist" = { - Unit = { - Description = "wl-clip-persist (Persist clipboard entries on wayland even after the application gets closed.)"; - After = [ "graphical-session.target" ]; - PartOf = [ "graphical-session.target" ]; - }; - - Service = { - Type = "simple"; - Restart = "on-failure"; - ExecStart = "${pkgs.wl-clip-persist}/bin/wl-clip-persist --clipboard regular --reconnect-tries 1 --selection-size-limit 1048576"; - }; - - Install.WantedBy = [ "graphical-session.target" ]; - }; - }; -}