playerctl: add rolled sxhkd service

This commit is contained in:
Zynh Ludwig 2024-07-11 23:43:08 -07:00
parent 011a1601f6
commit 773852b310

View file

@ -15,11 +15,27 @@ in
playerctl
];
systemd.user.services.sxhkd = {
Unit = {
Description = "sxhkd service";
PartOf = [ "graphical-session.target" ];
};
Service = {
Type = "exec";
ExecStart = "${pkgs.sxhkd}/bin/sxhkd";
};
Install = {
WantedBy = [ "graphical-session.target" ];
};
};
services.sxhkd = {
enable = true;
keybindings = {
"XF86AudioPlay" = "playerctl play-pause";
"XF86AudioPrev" = "playerctl previous";
"XF86AudioNext" = "playerctl next";
"XF86AudioPlay" = "${pkgs.playerctl}/bin/playerctl play-pause";
"XF86AudioPrev" = "${pkgs.playerctl}/bin/playerctl previous";
"XF86AudioNext" = "${pkgs.playerctl}/bin/playerctl next";
};
};
};