playerctl: shorten playerctl var

This commit is contained in:
Zynh Ludwig 2024-07-12 17:44:48 -07:00
parent c5ae0732e4
commit 74054316b1

View file

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