Files
dotfiles/dot_config/hypr/hyprland.d.lua/monitors.lua.tmpl
T
mpuchstein d53bc5dadb hypr: migrate to Lua config (v0.55) with custom scroll layouts
Replace hyprlang hyprland.d/ with Lua-based hyprland.d.lua/ modules:
- theme.lua.tmpl: apex-neon + apex-aeon color tables, col.* bracket keys
- general.lua: config, bezier curves, animations (bezier=/spring= fixed)
- monitors.lua.tmpl, workspaces.lua.tmpl, input.lua.tmpl, rules.lua.tmpl
- keybinds.lua.tmpl: +/SHIFT/CTRL format, monitor focus (Super+I/O),
  scroll binds for custom layouts
- layout.lua: master-scroll, slave-master-scroll, center-master-scroll
  (peek-hint scrolling slave columns, focus-triggered auto-scroll)

Entry point uses package.path + require() for per-file error isolation.
Old hyprlang configs preserved under hyprland.conf.bak/.
Add .luarc.json for hyprland stub autocompletion in editors.
2026-05-12 01:00:42 +02:00

36 lines
932 B
Cheetah

{{- range .monitors }}
hl.monitor({
output = "{{ .name }}",
mode = "{{ .width }}x{{ .height }}@{{ .refresh_rate }}",
position = "{{ .position }}",
scale = {{ .scale }}
{{- if hasKey . "vrr" }},
vrr = {{ .vrr }}
{{- end }}
{{- if hasKey . "transform" }},
transform = {{ .transform }}
{{- end }}
{{- if hasKey . "bitdepth" }},
bitdepth = {{ .bitdepth }}
{{- end }}
{{- if hasKey . "cm" }},
cm = "{{ .cm }}"
{{- end }}
{{- if hasKey . "supports_hdr" }},
supports_hdr = {{ .supports_hdr }}
{{- end }}
{{- if hasKey . "sdrbrightness" }},
sdrbrightness = {{ .sdrbrightness }}
{{- end }}
{{- if hasKey . "sdrsaturation" }},
sdrsaturation = {{ .sdrsaturation }}
{{- end }}
{{- if hasKey . "max_luminance" }},
max_luminance = {{ .max_luminance }}
{{- end }}
})
{{- end }}
{{- if not .monitors }}
hl.monitor({ output = "", mode = "preferred", position = "auto", scale = 1 })
{{- end }}