Compare commits

...

4 Commits

Author SHA1 Message Date
Zynh Ludwig 0079705dd1 media keybinds 2024-07-11 04:08:38 -07:00
Zynh Ludwig 64fcb9909d adding sxhkd
enabling xsession
2024-07-11 04:08:38 -07:00
Zynh Ludwig 8be0b36449 playerctl package 2024-07-11 04:07:25 -07:00
Zynh Ludwig e6af7b7403 playerctl module
enable playerctl
2024-07-11 04:07:25 -07:00
2 changed files with 29 additions and 0 deletions

View File

@ -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";
};
};
};
}

View File

@ -20,6 +20,7 @@ in
dunst.enable = true;
sops.enable = true;
ssh.enable = true;
playerctl.enable = true;
};
xsession.numlock.enable = true;