2023-06-13 23:01:28 +02:00
|
|
|
{
|
|
|
|
nixpkgs.overlays = [
|
|
|
|
(final: prev: {
|
2023-06-20 20:50:03 +02:00
|
|
|
waybar = prev.waybar.overrideAttrs (old: rec {
|
|
|
|
version = "b0f89f2bc115f4447dbf4565faca9a6122594d68";
|
|
|
|
|
|
|
|
src = final.fetchFromGitHub {
|
|
|
|
owner = "Alexays";
|
|
|
|
repo = "Waybar";
|
|
|
|
rev = version;
|
|
|
|
sha256 = "sha256-wH8UvSYnEBCdF2r6yAtocVuaZM9eIXLlg31n9FKTISE=";
|
|
|
|
};
|
|
|
|
|
2023-06-13 23:01:28 +02:00
|
|
|
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
|
|
|
|
'';
|
|
|
|
|
2023-06-16 13:31:34 +02:00
|
|
|
mesonFlags = old.mesonFlags ++ [ "-Dexperimental=true" ];
|
2023-06-13 23:01:28 +02:00
|
|
|
});
|
|
|
|
})
|
|
|
|
];
|
|
|
|
}
|