Allow monitor workspaces in chezmoi.toml to be defined as objects with optional layout and layoutopts fields, enabling per-workspace layout and layoutopt rules. Plain int arrays remain supported for monitors with no per-workspace overrides. Also commit waybar and cursor config tweaks. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
10 lines
485 B
Cheetah
10 lines
485 B
Cheetah
{{- 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 "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 }}
|