os/modules/graphical/sway/ydotool.service.nix

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

20 lines
483 B
Nix
Raw Normal View History

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