os/modules/graphical/sway/ydotool.service.nix
2023-11-10 19:48:06 +01:00

19 lines
473 B
Nix

{pkgs, ...}: {
Unit = {
Description = "ydotool - Generic command-line automation tool (no X!)";
Documentation = ["https://github.com/ReimuNotMoe/ydotool"];
BindsTo = ["sway-session.target"];
After = ["sway-session.target"];
};
Service = {
Type = "simple";
ExecStart = "${pkgs.ydotool}/bin/ydotoold";
Restart = "on-failure";
RestartSec = "1";
TimeoutStopSec = "10";
};
Install = {
WantedBy = ["sway-session.target"];
};
}