Files
dotfiles/dot_config/hypr/hyprland.d/20-workspaces.conf.tmpl
T
Matthias Puchstein 7c39de5d9a hypr,waybar: fix workspace visibility and tag-gate steam/spotify
Remove persistent:true from named workspaces so they only appear in
waybar when occupied. Gate steam on cs2 tag and spotify on entertainment
tag. Fix waybar to prefer hyprland/workspaces over niri/workspaces when
both tags are present.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-15 23:56:34 +01:00

27 lines
1.3 KiB
Cheetah

{{- $tags := .chezmoi.config.data.tags -}}
## ========== Special Workspaces ==========
workspace = special:passwordmgr, on-created-empty:uwsm app -- bitwarden-desktop
## ========== Named Workspaces (IDs 1-6, sorted before numbered) ==========
workspace = 1, defaultName:mail
workspace = 2, defaultName:comms, monitor:DP-2, layout:scrolling, layoutopt:direction:down
workspace = 3, defaultName:element, monitor:DP-2, layout:scrolling, layoutopt:direction:down
workspace = 4, defaultName:joplin
{{- if index $tags "cs2" }}
workspace = 5, defaultName:steam, layout:scrolling
{{- end }}
{{- if index $tags "entertainment" }}
workspace = 6, defaultName:spotify, monitor:DP-2, layout:monocle, on-created-empty:uwsm app -- spotify-launcher
{{- end }}
## ========== Monitor Workspaces ==========
{{- range $monitor := .monitors }}
{{- range $index, $ws := $monitor.workspaces }}
{{- if kindIs "map" $ws }}
workspace = {{ $ws.id }}, monitor:{{ $monitor.name }}{{ if eq $index 0 }}, default:true{{ end }}{{ if index $ws "name" }}, defaultName:{{ $ws.name }}{{ end }}{{ if index $ws "layout" }}, layout:{{ $ws.layout }}{{ end }}{{ range index $ws "layoutopts" }}, layoutopt:{{ . }}{{ end }}
{{- else }}
workspace = {{ $ws }}, monitor:{{ $monitor.name }}{{ if eq $index 0 }}, default:true{{ end }}
{{- end }}
{{- end }}
{{- end }}