Compare commits
3 Commits
971420fd32
...
773852b310
Author | SHA1 | Date |
---|---|---|
Zynh Ludwig | 773852b310 | |
Zynh Ludwig | 011a1601f6 | |
Zynh Ludwig | 80e33aba09 |
|
@ -10,18 +10,32 @@ in
|
|||
|
||||
config = lib.mkIf cfg.enable {
|
||||
services.playerctld.enable = true;
|
||||
xsession.enable = true;
|
||||
|
||||
home.packages = with pkgs; [
|
||||
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";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue