diff --git a/modules/home/services/waybar/default.nix b/modules/home/services/waybar/default.nix index 0b15e38..15d1bb2 100644 --- a/modules/home/services/waybar/default.nix +++ b/modules/home/services/waybar/default.nix @@ -38,15 +38,18 @@ in { "clock" ]; - "hyprland/workspaces" = { + "hyprland/workspaces" = let + hyprctl = + lib.getExe' config.wayland.windowManager.hyprland.package "hyprctl"; + in { format = "{name}"; format-icons = { default = " "; active = " "; urgent = " "; }; - on-scroll-up = "hyprctl dispatch workspace e+1"; - on-scroll-down = "hyprctl dispatch workspace e-1"; + on-scroll-up = "${hyprctl} dispatch workspace e+1"; + on-scroll-down = "${hyprctl} dispatch workspace e-1"; }; "clock" = {