NoSignal-OS/os updates/monitor-control-fix/hyprmoncfgd-override.conf
28allday 19fd794b6b NoSignal — fully-offline Arch → Hyprland desktop installer
Single-script builder (nosignal.sh) that turns a stock Arch Linux ISO into a
fully-offline installer for a themed Hyprland + caelestia (Quickshell) desktop:
matching SDDM greeter, Btrfs/Limine bootable snapshots, chwd-style GPU
detection, and a curated "os updates" layer (keybind cheatsheet, settings
panels, system polish, on-box management skill). See README.md.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-21 11:03:10 +01:00

15 lines
1 KiB
Text
Executable file

# NoSignal: make hyprmoncfgd verify the monitors.conf source line against
# hypr-user.conf (which sources it directly) instead of hyprland.conf (which
# only sources it indirectly, via $cConf/hypr-user.conf — hyprmoncfg doesn't
# follow that). --monitors-conf must be absolute or it resolves next to the
# --hypr-config file. %h = the user's home (systemd specifier; stays portable).
#
# ExecStartPre: at login the daemon races Hyprland's startup — `hyprctl
# instances -j` returns invalid JSON for a moment, the daemon's first apply
# fails and it flashes an error notification (it succeeds on its own retry 5s
# later). Hold the start until the instances JSON parses (up to ~30s, then
# proceed anyway and let the daemon's own retry handle it).
[Service]
ExecStartPre=/bin/sh -c 'for i in $(seq 1 60); do hyprctl instances -j 2>/dev/null | jq -e ".[0]" >/dev/null 2>&1 && exit 0; sleep 0.5; done; exit 0'
ExecStart=
ExecStart=/usr/bin/hyprmoncfgd --hypr-config %h/.config/caelestia/hypr-user.conf --monitors-conf %h/.config/hypr/monitors.conf