diff --git a/user/waybar.nix b/user/waybar.nix index c82f73b..8fd9796 100644 --- a/user/waybar.nix +++ b/user/waybar.nix @@ -72,7 +72,9 @@ in { format = "{:%H:%M %a %d/%m}"; tooltip = false; }; - mpd = { + mpd = let + mpc = "${pkgs.mpc-cli}/bin/mpc"; + in { format = "{stateIcon} {title} - {artist}"; format-paused = "{stateIcon}"; format-stopped = ""; @@ -81,9 +83,9 @@ in { playing = ""; }; tooltip = false; - on-click = "mpc toggle"; - on-scroll-up = "mpc vol +10"; - on-scroll-down = "mpc vol -10"; + on-click = "${mpc} toggle"; + on-scroll-up = "${mpc} vol +10"; + on-scroll-down = "${mpc} vol -10"; }; "sway/language" = { format = "{short} {variant}"; }; "custom/caffeine" = {