feat(hyprland): generate Lua monitor config instead of hyprlang

Write hl.monitor({...}) calls to ~/.config/hypr/monitors.lua (loaded via
require("monitors") in hyprland.lua) instead of monitor= lines in
monitors.conf. Prepare now strips hl.monitor lines with disabled = true,
and generateConf omits mode/position so Hyprland uses its defaults.
Update README and example config to match.
This commit is contained in:
Maksim Totmin
2026-08-02 12:50:53 +07:00
parent ac82e3e82a
commit 3515608fd3
4 changed files with 68 additions and 49 deletions
+2 -2
View File
@@ -18,10 +18,10 @@ restore_on_exit: true
# Backend-specific options. Keys depend on the selected backend.
# Hyprland supports:
# output_path — path to the generated monitor config file
# (default: ~/.config/hypr/monitors.conf)
# (default: ~/.config/hypr/monitors.lua)
# Sway supports no backend-specific options (uses swaymsg commands directly).
# backend_config:
# output_path: ~/.config/hypr/custom-monitors.conf
# output_path: ~/.config/hypr/custom-monitors.lua
# External monitors that trigger docked mode.
# Plain name: matches the connector name (e.g. DP-1, HDMI-A-1).