From 74b49de883b3b09de580d2d08fdfee5a24fe537a Mon Sep 17 00:00:00 2001 From: Ruby Iris Juric Date: Sat, 27 May 2023 17:01:28 +1000 Subject: [PATCH] Add hyprland to waybar-hyprland path as fallback for hyprctl --- nix/overlays.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/nix/overlays.nix b/nix/overlays.nix index d783f33d..e4475f08 100644 --- a/nix/overlays.nix +++ b/nix/overlays.nix @@ -56,6 +56,10 @@ in { # use hyprctl to switch workspaces sed -i 's/zext_workspace_handle_v1_activate(workspace_handle_);/const std::string command = "hyprctl dispatch workspace " + name_;\n\tsystem(command.c_str());/g' src/modules/wlr/workspace_manager.cpp ''; + postFixup = '' + wrapProgram $out/bin/waybar \ + --suffix PATH : ${lib.makeBinPath [ prev.hyprland ]} + ''; mesonFlags = old.mesonFlags ++ ["-Dexperimental=true"]; }); })