Fixes workspaces in waybar kinda?

This commit is contained in:
Emmet 2023-09-23 15:41:42 -05:00
parent 9597c92f27
commit cb44186bb1
2 changed files with 3 additions and 3 deletions

View file

@ -25,6 +25,7 @@
xwayland = {
enable = true;
};
portalPackage = pkgs.xdg-desktop-portal-hyprland;
};
};
}

View file

@ -364,7 +364,6 @@
# use hyprctl to switch workspaces
sed -i 's/zext_workspace_handle_v1_activate(workspace_handle_);/const std::string command = "hyprworkspace " + name_;\n\tsystem(command.c_str());/g' src/modules/wlr/workspace_manager.cpp
'';
mesonFlags = oldAttrs.mesonFlags ++ [ "-Dexperimental=true" ];
});
settings = {
mainBar = {
@ -376,7 +375,7 @@
spacing = 2;
modules-left = [ "custom/os" "battery" "backlight" "pulseaudio" "cpu" "memory" ];
modules-center = [ "wlr/workspaces" ];
modules-center = [ "hyprland/workspaces" ];
modules-right = [ "idle_inhibitor" "tray" "clock" ];
"custom/os" = {
@ -384,7 +383,7 @@
"exec" = ''echo "" '';
"interval" = "once";
};
"wlr/workspaces" = {
"hyprland/workspaces" = {
"format" = "{icon}";
"format-icons" = {
"1" = "notes¹";