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:
@@ -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": {
|
||||
|
||||
Reference in New Issue
Block a user