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:
parent
1fa52fcbbc
commit
44adb319f5
@ -1,12 +1,10 @@
|
|||||||
{ lib
|
{ lib
|
||||||
, hyprland
|
|
||||||
, ...
|
, ...
|
||||||
}: {
|
}: {
|
||||||
home-manager.sharedModules = [
|
home-manager.sharedModules = [
|
||||||
{
|
{
|
||||||
programs.waybar = {
|
programs.waybar = {
|
||||||
enable = true;
|
enable = true;
|
||||||
package = hyprland.packages."x86_64-linux".waybar-hyprland;
|
|
||||||
|
|
||||||
settings = {
|
settings = {
|
||||||
mainBar = {
|
mainBar = {
|
||||||
|
@ -4,5 +4,6 @@
|
|||||||
./joshuto
|
./joshuto
|
||||||
./kitty
|
./kitty
|
||||||
./rofi
|
./rofi
|
||||||
|
./waybar
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
14
overlays/waybar/default.nix
Normal file
14
overlays/waybar/default.nix
Normal 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"];
|
||||||
|
});
|
||||||
|
})
|
||||||
|
];
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user