unit for wayland-push-to-talk-fix

master
Yorick van Pelt 2023-04-03 16:01:22 +02:00
parent 42cb5ccb2d
commit 3043279dd5
Signed by: yorick
GPG Key ID: A36E70F9DC014A15
1 changed files with 14 additions and 0 deletions

View File

@ -180,6 +180,20 @@ in {
XCURSOR_PATH = "${pkgs.gnome.adwaita-icon-theme}/share/icons";
XDG_CURRENT_DESKTOP = "sway";
};
systemd.user.services.wayland-push-to-talk-fix = let
kbd = "/dev/input/by-id/usb-Kinesis_Advantage2_Keyboard_314159265359-if01-event-kbd";
in {
Unit.ConditionPathExists = kbd;
Install.WantedBy = [ "graphical-session.target" ];
Unit = {
PartOf = [ "graphical-session.target" ];
After = [ "graphical-session.target" ];
};
Service = {
ExecStart = "${pkgs.wayland-push-to-talk-fix}/bin/wayland-push-to-talk-fix ${kbd} -k KEY_LEFTALT -n Alt_L";
Restart = "on-failure";
};
};
# todo: use home-manager unit
systemd.user.services.gmi = {
Unit.ConditionPathExists = "/home/yorick/mail/account.gmail/.gmailieer.json";