mirror of
https://github.com/donovanglover/nix-config.git
synced 2025-05-29 22:19:19 +02: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}"
|
--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; {
|
meta = with lib; {
|
||||||
changelog = "https://github.com/alexays/waybar/releases/tag/${version}";
|
changelog = "https://github.com/alexays/waybar/releases/tag/${version}";
|
||||||
description = "Highly customizable Wayland bar for Sway and Wlroots based compositors";
|
description = "Highly customizable Wayland bar for Sway and Wlroots based compositors";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user