fix: wipe cliphist on restart
This commit is contained in:
parent
d7f018939f
commit
9a4cca62e7
1 changed files with 11 additions and 0 deletions
|
|
@ -54,5 +54,16 @@
|
|||
};
|
||||
Install.WantedBy = [ "timers.target" ];
|
||||
};
|
||||
|
||||
systemd.user.services.cliphist-wipe = {
|
||||
Unit.Description = "Clear clipboard history on session end";
|
||||
Service = {
|
||||
Type = "oneshot";
|
||||
RemainAfterExit = true;
|
||||
ExecStart = "${pkgs.coreutils}/bin/true";
|
||||
ExecStop = "${pkgs.cliphist}/bin/cliphist wipe";
|
||||
};
|
||||
Install.WantedBy = [ "graphical-session.target" ];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue