playerctl: add rolled sxhkd service
This commit is contained in:
parent
011a1601f6
commit
773852b310
1 changed files with 19 additions and 3 deletions
|
@ -15,11 +15,27 @@ in
|
||||||
playerctl
|
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 = {
|
services.sxhkd = {
|
||||||
|
enable = true;
|
||||||
keybindings = {
|
keybindings = {
|
||||||
"XF86AudioPlay" = "playerctl play-pause";
|
"XF86AudioPlay" = "${pkgs.playerctl}/bin/playerctl play-pause";
|
||||||
"XF86AudioPrev" = "playerctl previous";
|
"XF86AudioPrev" = "${pkgs.playerctl}/bin/playerctl previous";
|
||||||
"XF86AudioNext" = "playerctl next";
|
"XF86AudioNext" = "${pkgs.playerctl}/bin/playerctl next";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue