aboutsummaryrefslogtreecommitdiffstats
path: root/desktop/modules/monitors
AgeCommit message (Collapse)AuthorFilesLines
35 hoursmonitors: report Keep's write, resync without the autoreloadDanilo M.1-2/+8
"saved" now waits for FileView's saved, and a failed write shows its error: the change is live but the next reload would bring the old file back. Keep sets orig from the draft itself rather than relying on the autoreload's read, apply() clears a skipRead a refusal's reload never consumed, and an unreadable hyprctl reply says so instead of showing an empty page. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
35 hoursmonitors: settings module, try live then keep or revertDanilo M.2-0/+180
Apply evals each monitor's hl.monitor line, one call each because eval wraps its argument in a return. Keep writes sections/monitors.lua whole; Revert or 15s without an answer is hyprctl reload, which reapplies the untouched file. A refusal also reloads, since an earlier monitor's eval may have gone through. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
35 hoursmonitors: draw a scale being typed at 1Danilo M.2-2/+13
The page binds the canvas to size(), and an empty or partial scale gave Infinity or NaN and broke the fit. Apply is still held back until the scale is a positive number. Also marks the per-axis snap as a ceiling and checks a rotated scaled monitor and a two-monitor file. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
35 hoursmonitors: pure helpers for the settings pageDanilo M.2-0/+170
The Lua for a monitor and for monitors.lua, logical size, edge snapping and the mode list, with the duplicates the ASUS reports collapsed and the current mode matched by nearest refresh (99.943 against 99.94). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>