mirror of
https://github.com/donovanglover/nix-config.git
synced 2025-01-23 06:08:35 +01:00
44adb319f5
This fixes an issue where waybar-hyprland would break with hyprland-autoname-workspaces.
15 lines
479 B
Nix
15 lines
479 B
Nix
{
|
|
nixpkgs.overlays = [
|
|
(final: prev: {
|
|
waybar = prev.waybar.overrideAttrs (old: {
|
|
postPatch = /* bash */ ''
|
|
# use hyprctl to switch workspaces
|
|
sed -i 's/zext_workspace_handle_v1_activate(workspace_handle_);/const std::string command = "hyprctl dispatch workspace e+1";\n\tsystem(command.c_str());/g' src/modules/wlr/workspace_manager.cpp
|
|
'';
|
|
|
|
mesonFlags = old.mesonFlags ++ ["-Dexperimental=true"];
|
|
});
|
|
})
|
|
];
|
|
}
|