1
0
mirror of https://github.com/kmein/niveum synced 2026-03-16 10:11:08 +01:00

feat: clipmenu

This commit is contained in:
2022-11-29 22:49:51 +01:00
parent d1b5b0c25c
commit 93cc209e52
4 changed files with 23 additions and 42 deletions

21
configs/clipboard.nix Normal file
View File

@@ -0,0 +1,21 @@
{
config,
pkgs,
...
}: {
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
'';
};
};
}