mirror of
https://github.com/ItsDrike/nixdots
synced 2024-11-09 22:49:42 +00:00
Add wl-clip-persist
This commit is contained in:
parent
d87680738d
commit
f6832333dc
|
@ -1,5 +1,6 @@
|
||||||
_: {
|
_: {
|
||||||
imports = [
|
imports = [
|
||||||
./dunst.nix
|
./dunst.nix
|
||||||
|
./wl-clip-persist.nix
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
28
home/services/wl-clip-persist.nix
Normal file
28
home/services/wl-clip-persist.nix
Normal file
|
@ -0,0 +1,28 @@
|
||||||
|
{
|
||||||
|
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