1
0
forked from extern/nix-config

waybar-hyprland: Use custom overlay

This fixes an issue where waybar-hyprland would break with
hyprland-autoname-workspaces.
This commit is contained in:
Donovan Glover 2023-06-13 17:01:28 -04:00
parent 1fa52fcbbc
commit 44adb319f5
No known key found for this signature in database
GPG Key ID: EA7408A77AE1BE65
3 changed files with 15 additions and 2 deletions

View File

@ -1,12 +1,10 @@
{ lib
, hyprland
, ...
}: {
home-manager.sharedModules = [
{
programs.waybar = {
enable = true;
package = hyprland.packages."x86_64-linux".waybar-hyprland;
settings = {
mainBar = {

View File

@ -4,5 +4,6 @@
./joshuto
./kitty
./rofi
./waybar
];
}

View File

@ -0,0 +1,14 @@
{
nixpkgs.overlays = [
(final: prev: {
waybar = prev.waybar.overrideAttrs (old: {
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
'';
mesonFlags = old.mesonFlags ++ ["-Dexperimental=true"];
});
})
];
}