mirror of
https://github.com/donovanglover/nix-config.git
synced 2025-03-13 06:18:54 +01:00
waybar: Add back hyprland postPatch
This is still necessary to make workspace switching work properly.
This commit is contained in:
parent
c946307c67
commit
f073819dc8
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user