6ecb1dbb56f94a60eb15dac228f832ef7bd47799
omarchy-launch-screensaver loops over the monitors, focusing each and spawning a terminal on it -- but the spawn is asynchronous. Slow-starting terminals mapped their windows after focus had already moved to the next monitor, so every screensaver landed on the last-focused monitor and the others got none (and the fullscreen rule applied inconsistently when two windows mapped at once). Listen on Hyprland's event socket and wait for each monitor's screensaver window to open before moving focus to the next one, so there is exactly one screensaver per monitor. The stream is opened before spawning so a fast-mapping window can't be missed, with a read timeout as a safety net. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Omarchy
Omarchy is a beautiful, modern & opinionated Linux distribution by DHH.
Read more at omarchy.org.
License
Omarchy is released under the MIT License.
Languages
Shell
57.3%
QML
31.2%
JavaScript
4.1%
Python
2.9%
Go Template
2.5%
Other
2%