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
+1 -1
View File
@@ -53,7 +53,7 @@ type Config struct {
// OutputPath overrides the generated monitor config file path.
// Supports ~ for home directory expansion.
// Deprecated: use backend_config.output_path instead.
// Empty means the default: ~/.config/hypr/monitors.conf.
// Empty means the default: ~/.config/hypr/monitors.lua.
OutputPath string `yaml:"output_path"`
// BackendConfig holds backend-specific configuration options.