mirror of
https://github.com/anotherhadi/nixy.git
synced 2026-08-21 10:45:49 +02:00
Waybar here i come (#58)
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
# Clipboard history: cliphist watches the Wayland clipboard and stores every
|
||||
# entry (text + images) so it can be recalled later via the `clipboard-menu`
|
||||
# script (tofi). Uses the home-manager module so the watcher services are
|
||||
# managed the same way as swaync/hypridle.
|
||||
{pkgs, ...}: {
|
||||
services.cliphist = {
|
||||
enable = true;
|
||||
allowImages = true;
|
||||
};
|
||||
|
||||
systemd.user.services.cliphist-wipe = {
|
||||
Unit = {
|
||||
Description = "Wipe cliphist history on login and logout";
|
||||
After = ["cliphist.service"];
|
||||
};
|
||||
Service = {
|
||||
Type = "oneshot";
|
||||
RemainAfterExit = true;
|
||||
ExecStart = "${pkgs.cliphist}/bin/cliphist wipe";
|
||||
ExecStop = "${pkgs.cliphist}/bin/cliphist wipe";
|
||||
};
|
||||
Install.WantedBy = ["default.target"];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user