feat: add optional output_path, change default to monitors.conf

This commit is contained in:
Maksim Totmin
2026-06-22 20:37:07 +07:00
parent 2a49aa98ed
commit 15691c0918
5 changed files with 59 additions and 17 deletions
+5
View File
@@ -50,6 +50,11 @@ type Config struct {
// Uses *bool so we can distinguish "not set" from explicit false.
RestoreOnExit *bool `yaml:"restore_on_exit"`
// OutputPath overrides the generated monitor config file path.
// Supports ~ for home directory expansion.
// Empty means the default: ~/.config/hypr/monitors.conf.
OutputPath string `yaml:"output_path"`
// External lists monitor identifiers that trigger docked mode.
// Each entry is a name (DP-1) or a desc: prefix (desc:Dell U2723QE).
External []string `yaml:"external"`