Fix night light doing nothing when another user is also logged in
Issue #14037 (open) reports exactly this on 4.0.4-1: pgrep -x hyprsunset matches other users' processes, no hyprsunset starts for the current session, and hyprctl fails with the quoted /run/user/1001 socket error. PR #14038 is still OPEN, titled 'Only count this user's hyprsunset as running for night light', and a comment on the issue says it changes both the toggle and the night light service to pgrep -x -u "$UID". The local 4.0.4-1 script and the quattro tree both still use the unscoped pgrep -x at bin/omarchy-toggle-nightlight line 38, as does Service.qml. The workaround is sound: starting a per-user hyprsunset gives the session its socket, and the toggle's retry loop (10 tries, 0.2 s apart) covers the short delay before the background start finishes. The hyprsunset.service user unit is per-user. Not exercised, because this machine has a single user.
Symptom
Super+Ctrl+N (omarchy toggle nightlight) does nothing. The screen temperature never changes and the toggle exits silently. Another user on the same machine has a Hyprland session open with night light on. hyprctl hyprsunset temperature fails with:
Couldn't connect to /run/user/1001/hypr/<signature>/.hyprsunset.sock. (3)
Cause
omarchy-toggle-nightlight decides whether to start hyprsunset with pgrep -x hyprsunset, which matches processes of every user. It finds the other user's hyprsunset, never starts one in your session, and then hyprctl hyprsunset has no socket in your Hyprland instance to talk to. The fix, PR #14038, restricts the check to pgrep -x -u "$UID", and it was still open on 2026-10-04. The unpatched check is in 4.0.4-1 and on quattro.
Fix
**Start hyprsunset for your own session, then toggle:**
pgrep -u "$USER" -x hyprsunset || setsid uwsm-app -- hyprsunset >/dev/null 2>&1 &
omarchy toggle nightlight
**To make it automatic,** run hyprsunset under your own user manager. It is scoped to your session, so the other user's process no longer matters:
systemctl --user enable --now hyprsunset.service
Verify
pgrep -u "$USER" -x hyprsunset prints a PID, hyprctl hyprsunset temperature answers, and Super+Ctrl+N visibly warms the screen.