This commit is contained in:
Spectre 2024-06-07 15:39:33 +02:00
parent 5c51498922
commit 793095b3f0
14 changed files with 154 additions and 2 deletions

21
home/clipman.nix Normal file
View file

@ -0,0 +1,21 @@
{pkgs, ...}: {
home.packages = [pkgs.clipman];
# https://github.com/nix-community/home-manager/blob/master/modules/services/clipman.nix
systemd.user.services.clipman = {
Unit = {
Description = "Clipboard management daemon";
PartOf = ["graphical-session.target"];
After = ["graphical-session.target"];
};
Service = {
ExecStart = "${pkgs.wl-clipboard}/bin/wl-paste -t --watch ${pkgs.clipman}/bin/clipman store --max-items=500";
ExecReload = "${pkgs.coreutils}/bin/kill -SIGUSR2 $MAINPID";
Restart = "on-failure";
KillMode = "mixed";
};
Install.WantedBy = ["graphical-session.target"];
};
}