make wl-clip-persist on all graphical systems
This commit is contained in:
parent
0ae2f07b21
commit
160a8f065e
2 changed files with 12 additions and 6 deletions
|
|
@ -1,6 +0,0 @@
|
|||
{ pkgs, lib, ... }:
|
||||
{
|
||||
# Keeps clipboard contents available after the app they were copied from exits
|
||||
programs.fht-compositor.sessionPrograms.wl-clip-persist =
|
||||
"${lib.getExe pkgs.wl-clip-persist} --clipboard regular";
|
||||
}
|
||||
12
modules/graphical/clipboard.nix
Normal file
12
modules/graphical/clipboard.nix
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
{ pkgs, lib, ... }:
|
||||
{
|
||||
systemd.user.services.wl-clip-persist = {
|
||||
wantedBy = [ "graphical-session.target" ];
|
||||
partOf = [ "graphical-session.target" ];
|
||||
after = [ "graphical-session.target" ];
|
||||
serviceConfig = {
|
||||
ExecStart = "${lib.getExe pkgs.wl-clip-persist} --clipboard regular";
|
||||
Restart = "on-failure";
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Reference in a new issue