cleanup: extracting a command for funsies :P
parent
773852b310
commit
58b4cd9815
|
@ -30,12 +30,16 @@ in
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
services.sxhkd = {
|
services.sxhkd =
|
||||||
|
let
|
||||||
|
playerctlcmd = "${pkgs.playerctl}/bin/playerctl";
|
||||||
|
in
|
||||||
|
{
|
||||||
enable = true;
|
enable = true;
|
||||||
keybindings = {
|
keybindings = {
|
||||||
"XF86AudioPlay" = "${pkgs.playerctl}/bin/playerctl play-pause";
|
"XF86AudioPlay" = "${playerctlcmd} play-pause";
|
||||||
"XF86AudioPrev" = "${pkgs.playerctl}/bin/playerctl previous";
|
"XF86AudioPrev" = "${playerctlcmd} previous";
|
||||||
"XF86AudioNext" = "${pkgs.playerctl}/bin/playerctl next";
|
"XF86AudioNext" = "${playerctlcmd} next";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue