mirror of
https://github.com/ItsDrike/nixdots
synced 2024-11-09 22:49:42 +00:00
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.
This commit is contained in:
parent
a5548c5b8c
commit
760af68c1d
|
@ -1,6 +1,5 @@
|
|||
_: {
|
||||
imports = [
|
||||
./dunst.nix
|
||||
./wl-clip-persist.nix
|
||||
];
|
||||
}
|
||||
|
|
|
@ -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" ];
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue