Compare commits

...

3 Commits

Author SHA1 Message Date
Zynh Ludwig 773852b310 playerctl: add rolled sxhkd service 2024-07-11 23:58:37 -07:00
Zynh Ludwig 011a1601f6 playerctl: disable sxhkd 2024-07-11 23:33:08 -07:00
Zynh Ludwig 80e33aba09 playerctl: giving up on xsession
keybinds broken
2024-07-11 23:24:28 -07:00
1 changed files with 18 additions and 4 deletions

View File

@ -10,18 +10,32 @@ in
config = lib.mkIf cfg.enable { config = lib.mkIf cfg.enable {
services.playerctld.enable = true; services.playerctld.enable = true;
xsession.enable = true;
home.packages = with pkgs; [ home.packages = with pkgs; [
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; 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";
}; };
}; };
}; };