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" = {

View file

@ -105,7 +105,7 @@ in
"Super+I".action.spawn = ["alacritty" "--class" "btm" "-e" "btm"];
"Super+Alt+B".action.spawn = ["alacritty" "--class" "bluetui" "-e" "bluetui"];
"Super+Alt+W".action.spawn = ["alacritty" "--class" "impala" "-e" "impala"];
"Super+A".action.spawn = ["alacritty" "--class" "pulsemixer" "-e" "pulsemixer"];
"Super+A".action.spawn = ["alacritty" "--class" "pulsemixer" "-e" "${pkgs.wiremix}/bin/wiremix"];
"Super+Shift+F".action.spawn = ["cosmic-files"];
"Super+Shift+Q".action = quit;
"Super+O".action = toggle-overview;