waybar: Add back hyprland postPatch

This is still necessary to make workspace switching work properly.
This commit is contained in:
Donovan Glover 2023-05-31 11:50:32 -04:00
parent c946307c67
commit f073819dc8
No known key found for this signature in database
GPG Key ID: EA7408A77AE1BE65

View File

@ -109,6 +109,11 @@ stdenv.mkDerivation rec {
--prefix PYTHONPATH : "$PYTHONPATH:$out/${python3.sitePackages}"
'';
postPatch = ''
# 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
'';
meta = with lib; {
changelog = "https://github.com/alexays/waybar/releases/tag/${version}";
description = "Highly customizable Wayland bar for Sway and Wlroots based compositors";