l: use clipmenu instead of copyq

This commit is contained in:
lassulus 2022-11-22 00:16:06 +01:00
parent d2ae1c5a07
commit 629b4450c2

View file

@ -7,7 +7,6 @@ in {
./alacritty.nix
./mpv.nix
./power-action.nix
./copyq.nix
./urxvt.nix
./xdg-open.nix
./yubikey.nix
@ -222,4 +221,20 @@ in {
'';
};
};
services.clipmenu.enable = true;
# synchronize all the clipboards
systemd.user.services.autocutsel = {
enable = true;
wantedBy = [ "graphical-session.target" ];
after = [ "graphical-session.target" ];
serviceConfig = {
Type = "forking";
ExecStart = pkgs.writers.writeDash "autocutsel" ''
${pkgs.autocutsel}/bin/autocutsel -fork -selection PRIMARY
${pkgs.autocutsel}/bin/autocutsel -fork -selection CLIPBOARD
'';
};
};
}