making waybar work for both hyprland and niri

This commit is contained in:
Chris Cochrun 2025-09-30 11:20:53 -05:00
parent bf932e2ca5
commit fc99a7993b
3 changed files with 4 additions and 4 deletions

View file

@ -670,7 +670,7 @@ in {
width = if laptop then 1450 else 2200;
# Choose the order of the modules "custom/wintitle",
# modules-left = [ "hyprland/workspaces" "hyprland/window" ];
modules-left = [ "niri/workspaces" "niri/window" ];
modules-left = [ "hyprland/workspaces" "hyprland/window" "niri/window" ];
modules-center = [ "clock" ];
modules-right =
[ "cpu" "memory" "pulseaudio" "backlight" "battery" "tray" ];
@ -678,7 +678,7 @@ in {
margin-bottom = if laptop then 4 else 0;
margin-left = 6;
margin-right = 6;
"niri/window" = { format = "<span style='italic'>{title}</span>"; icon = true; };
"niri/window" = { format = " <span style='italic'>{title}</span>"; icon = true; };
"hyprland/window" = { format = "<span style='italic'>{title}</span>"; icon = true; };
workspaces = { format = " {name} "; };
"hyprland/workspaces" = {