os/modules/sway/ydotool.service.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

19 lines
473 B
Nix
Raw Permalink Normal View History

{pkgs, ...}: {
2021-05-30 19:10:28 +00:00
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"];
};
}