summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRuby Iris Juric <ruby@srxl.me>2023-05-27 17:01:28 +1000
committerMihai Fufezan <fufexan@pm.me>2023-05-27 15:35:25 +0300
commit74b49de883b3b09de580d2d08fdfee5a24fe537a (patch)
tree899b50a332996057d50ff124cb3470d0bf4fcd4c
parent8afc2f45c73d089e6c27ee732be4a3dd827acf2b (diff)
Add hyprland to waybar-hyprland path as fallback for hyprctl
-rw-r--r--nix/overlays.nix4
1 files changed, 4 insertions, 0 deletions
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"];
});
})