nixos/overlays/waybar-hypr.nix

14 lines
427 B
Nix

_self: super: {
waybar-hypr = super.waybar.overrideAttrs (old: {
pname = "waybar-hypr";
patchPhase = ''
sed -i -e '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
'';
mesonFlags =
old.mesonFlags
++ [
"-Dexperimental=true"
];
});
}