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
+3 -3
View File
@@ -39,7 +39,7 @@ Plugs into your dock — external monitors turn on, built-in turns off. Unplug
1. **Startup** — daemon queries connected monitors, determines portable/docked, applies layout
2. **Hotplug events** — listens to compositor socket for `monitoradded`/`monitorremoved`
3. **Debounce** — waits 1200ms after the last event (docks fire multiple events)
4. **Apply** — writes `monitor-lets-go-monitors.conf`, calls `hyprctl reload` (atomic)
4. **Apply** — writes `monitors.conf`, calls `hyprctl reload` (atomic)
5. **Hooks** — runs shell commands after layout change (waybar, wallpapers, etc.)
6. **Fallback polling** — every 5s checks monitor state (catches missed events)
@@ -80,7 +80,7 @@ make systemd-install # → enable & start systemd user service
Add one line to `~/.config/hypr/hyprland.conf` (or `hyprland.lua`):
```
source = ~/.config/hypr/monitor-lets-go-monitors.conf
source = ~/.config/hypr/monitors.conf
```
Remove any static `monitor=...` lines — monitor-lets-go manages monitors now.
@@ -314,7 +314,7 @@ Hyprland is not running or `HYPRLAND_INSTANCE_SIGNATURE` is not set. Make sure m
### "source file not found" on hyprctl reload
The `source = ~/.config/hypr/monitor-lets-go-monitors.conf` line must be added to hyprland.conf. The daemon creates this file on first run.
The `source = ~/.config/hypr/monitors.conf` line must be added to hyprland.conf. The daemon creates this file on first run.
### Hooks not running