cleanup: extracting a command for funsies :P

This commit is contained in:
Zynh Ludwig 2024-07-12 00:03:48 -07:00
parent 773852b310
commit 58b4cd9815

View file

@ -30,13 +30,17 @@ in
}; };
}; };
services.sxhkd = { services.sxhkd =
enable = true; let
keybindings = { playerctlcmd = "${pkgs.playerctl}/bin/playerctl";
"XF86AudioPlay" = "${pkgs.playerctl}/bin/playerctl play-pause"; in
"XF86AudioPrev" = "${pkgs.playerctl}/bin/playerctl previous"; {
"XF86AudioNext" = "${pkgs.playerctl}/bin/playerctl next"; enable = true;
keybindings = {
"XF86AudioPlay" = "${playerctlcmd} play-pause";
"XF86AudioPrev" = "${playerctlcmd} previous";
"XF86AudioNext" = "${playerctlcmd} next";
};
}; };
};
}; };
} }