hypr: support per-workspace layout config in workspace template
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>
This commit is contained in:
@@ -1,11 +1,10 @@
|
||||
{{- $tags := .chezmoi.config.data.tags -}}
|
||||
{{- $primary_output := "eDP-1" -}}
|
||||
{{- $secondary_output := "" -}}
|
||||
{{- $waybar_output := "eDP-1" -}}
|
||||
{{- range .monitors -}}
|
||||
{{- if index . "primary" -}}
|
||||
{{- $primary_output = .name -}}
|
||||
{{- else -}}
|
||||
{{- $secondary_output = .name -}}
|
||||
{{- if index . "waybar" -}}
|
||||
{{- $waybar_output = .name -}}
|
||||
{{- else if index . "primary" -}}
|
||||
{{- $waybar_output = .name -}}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
{{- $workspace_module := "" -}}
|
||||
@@ -17,7 +16,7 @@
|
||||
{
|
||||
"layer": "top",
|
||||
"position": "right",
|
||||
"output": "{{ $secondary_output }}",
|
||||
"output": "{{ $waybar_output }}",
|
||||
"width": 54,
|
||||
"spacing": 4,
|
||||
"margin-top": 0,
|
||||
|
||||
Reference in New Issue
Block a user