feat: playerctl module
enable playerctl playerctl package adding sxhkd enabling xsession media keybindssh-initrd-on-root
parent
4e495a907d
commit
344f34c061
|
@ -0,0 +1,28 @@
|
||||||
|
{ lib, config, pkgs, ... }:
|
||||||
|
|
||||||
|
let
|
||||||
|
cfg = config.snowhawk.playerctl;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
options.snowhawk.playerctl = {
|
||||||
|
enable = lib.mkEnableOption "playerctl";
|
||||||
|
};
|
||||||
|
|
||||||
|
config = lib.mkIf cfg.enable {
|
||||||
|
services.playerctld.enable = true;
|
||||||
|
xsession.enable = true;
|
||||||
|
|
||||||
|
home.packages = with pkgs; [
|
||||||
|
playerctl
|
||||||
|
];
|
||||||
|
|
||||||
|
services.sxhkd = {
|
||||||
|
enable = true;
|
||||||
|
keybindings = {
|
||||||
|
"XF86AudioPlay" = "playerctl play-pause";
|
||||||
|
"XF86AudioPrev" = "playerctl previous";
|
||||||
|
"XF86AudioNext" = "playerctl next";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
|
@ -20,6 +20,7 @@ in
|
||||||
dunst.enable = true;
|
dunst.enable = true;
|
||||||
sops.enable = true;
|
sops.enable = true;
|
||||||
ssh.enable = true;
|
ssh.enable = true;
|
||||||
|
playerctl.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
xsession.numlock.enable = true;
|
xsession.numlock.enable = true;
|
||||||
|
|
Loading…
Reference in New Issue