mirror of
https://github.com/librephoenix/nixos-config
synced 2025-04-21 01:34:34 +05:30
Fixes workspaces in waybar kinda?
This commit is contained in:
parent
9597c92f27
commit
cb44186bb1
|
@ -25,6 +25,7 @@
|
||||||
xwayland = {
|
xwayland = {
|
||||||
enable = true;
|
enable = true;
|
||||||
};
|
};
|
||||||
|
portalPackage = pkgs.xdg-desktop-portal-hyprland;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -364,7 +364,6 @@
|
||||||
# use hyprctl to switch workspaces
|
# 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
|
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 = {
|
settings = {
|
||||||
mainBar = {
|
mainBar = {
|
||||||
|
@ -376,7 +375,7 @@
|
||||||
spacing = 2;
|
spacing = 2;
|
||||||
|
|
||||||
modules-left = [ "custom/os" "battery" "backlight" "pulseaudio" "cpu" "memory" ];
|
modules-left = [ "custom/os" "battery" "backlight" "pulseaudio" "cpu" "memory" ];
|
||||||
modules-center = [ "wlr/workspaces" ];
|
modules-center = [ "hyprland/workspaces" ];
|
||||||
modules-right = [ "idle_inhibitor" "tray" "clock" ];
|
modules-right = [ "idle_inhibitor" "tray" "clock" ];
|
||||||
|
|
||||||
"custom/os" = {
|
"custom/os" = {
|
||||||
|
@ -384,7 +383,7 @@
|
||||||
"exec" = ''echo "" '';
|
"exec" = ''echo "" '';
|
||||||
"interval" = "once";
|
"interval" = "once";
|
||||||
};
|
};
|
||||||
"wlr/workspaces" = {
|
"hyprland/workspaces" = {
|
||||||
"format" = "{icon}";
|
"format" = "{icon}";
|
||||||
"format-icons" = {
|
"format-icons" = {
|
||||||
"1" = "notes¹";
|
"1" = "notes¹";
|
||||||
|
|
Loading…
Reference in a new issue