waybar: fix workspace config block priority to match module selection

Hyprland was checked first for the module name but niri was checked
first for the config block, so on machines with both tags the
hyprland/workspaces module had no config and thus no format-icons.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Matthias Puchstein
2026-03-16 00:39:43 +01:00
parent 081e104584
commit cc6289c122

View File

@@ -55,12 +55,7 @@
{{- end }}
],
{{- if $tags.niri }}
"niri/workspaces": {
"format": "{value}",
"all-outputs": true
},
{{- else if $tags.hyprland }}
{{- if $tags.hyprland }}
"hyprland/workspaces": {
"format": "{icon}",
"all-outputs": true,
@@ -88,6 +83,11 @@
"on-scroll-up": "hyprctl dispatch workspace e+1",
"on-scroll-down": "hyprctl dispatch workspace e-1"
},
{{- else if $tags.niri }}
"niri/workspaces": {
"format": "{value}",
"all-outputs": true
},
{{- end }}
"cpu": {