cleanup: extracting a command for funsies :P
This commit is contained in:
parent
773852b310
commit
58b4cd9815
1 changed files with 11 additions and 7 deletions
|
@ -30,13 +30,17 @@ in
|
|||
};
|
||||
};
|
||||
|
||||
services.sxhkd = {
|
||||
enable = true;
|
||||
keybindings = {
|
||||
"XF86AudioPlay" = "${pkgs.playerctl}/bin/playerctl play-pause";
|
||||
"XF86AudioPrev" = "${pkgs.playerctl}/bin/playerctl previous";
|
||||
"XF86AudioNext" = "${pkgs.playerctl}/bin/playerctl next";
|
||||
services.sxhkd =
|
||||
let
|
||||
playerctlcmd = "${pkgs.playerctl}/bin/playerctl";
|
||||
in
|
||||
{
|
||||
enable = true;
|
||||
keybindings = {
|
||||
"XF86AudioPlay" = "${playerctlcmd} play-pause";
|
||||
"XF86AudioPrev" = "${playerctlcmd} previous";
|
||||
"XF86AudioNext" = "${playerctlcmd} next";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue