os/modules/sway/libinput-gestures.service.nix
2023-01-28 21:49:10 +01:00

19 lines
495 B
Nix

{pkgs, ...}: {
Unit = {
Description = "Actions gestures on your touchpad using libinput";
Documentation = ["https://github.com/bulletmark/libinput-gestures"];
BindsTo = ["sway-session.target"];
After = ["sway-session.target"];
};
Service = {
Type = "simple";
ExecStart = "${pkgs.libinput-gestures}/bin/libinput-gestures";
Restart = "on-failure";
RestartSec = "1";
TimeoutStopSec = "10";
};
Install = {
WantedBy = ["sway-session.target"];
};
}