waybar.nix 589 B

123456789101112131415
  1. final: prev: {
  2. waybar = prev.waybar.overrideAttrs (o: {
  3. src = final.fetchFromGitHub {
  4. owner = "Alexays";
  5. repo = "Waybar";
  6. rev = "41164905351436db3a124207261f9dd759c6fa1b";
  7. hash = "sha256-aogiOj4pe2AJYxQFh8Dw6xQ2Tb6v4W9zwbGX4t2mStI=";
  8. };
  9. mesonFlags = o.mesonFlags ++ ["-Dexperimental=true"];
  10. patchPhase = ''
  11. substituteInPlace src/modules/wlr/workspace_manager.cpp --replace "zext_workspace_handle_v1_activate(workspace_handle_);" "const std::string command = \"hyprctl dispatch workspace \" + name_; system(command.c_str());"
  12. '';
  13. });
  14. }