Changing `idle.screensaver` / `idle.lock` in `shell.json` silently kills the idle monitor until the shell is restarted
What happened
Editing the idle timeouts in ~/.config/omarchy/shell.json on a running shell leaves the idle monitor permanently dead. The screensaver never appears and the session never idle-locks again — indefinitely, with no error anywhere.
The failure is silent in the worst way: omarchy-shell idle status happily reports the new timeouts and "enabled": true, so every diagnostic says the feature is working. Only the absence of idle-monitor: idle lines in the journal reveals it. On my machine the session sat unlocked for six hours before I noticed.
What I expected
shell.json hot-reloads — FileView { watchChanges: true } in shell.qml is explicit about this, and the bar handles it correctly via onBarConfigChanged: applyBarConfig() in plugins/bar/Bar.qml. I expected the idle timeouts to re-arm the same way.
Steps to reproduce
- Have a session running for a while with the stock idle defaults.
- Edit
~/.config/omarchy/shell.jsonand change the idle block, e.g. from the defaults to:
(Any change works. Reproduced by hand and via a GTK settings app that writes the same file atomically.)"idle": { "lock": 900, "screensaver": 300 } - Do not restart the shell.
- Confirm the new values were picked up:
Everything reads correct.$ omarchy-shell idle status {"enabled":true,"stayAwake":false,"idle":false,"screensaver":300,"lock":900, "screensaverDelay":0,"lockDelay":600, ...} - Leave the machine idle for longer than the screensaver timeout.
Result: no screensaver, no lock, and journalctl -t omarchy-shell | grep "omarchy idle" shows no further idle-monitor: transitions at all — not even idle-monitor: idle. The monitor never fires again for the life of the shell process.
omarchy restart shell fixes it immediately, and it stays fixed until the next time the timeouts are edited.
Evidence from my session
The shell started at 13:25. Idle cycles ran normally all afternoon on the stock defaults:
14:32:44 omarchy idle idle-monitor: idle
14:32:44 omarchy idle idle-cycle-start: screensaver=150 lock=300
14:32:44 omarchy idle process-start: screensaver ...
14:35:14 omarchy idle lock-system: lock-timeout
14:35:15 omarchy idle process-exit: lock exitCode=0 status=0
shell.json was then written at 14:44:26, changing the timeouts to 300/900. That is the last idle-related line in the journal for the next six hours — no idle-monitor: idle, no idle-monitor: active, nothing — despite the machine being left alone repeatedly. Meanwhile idle status reported screensaver:300, lock:900, enabled:true the whole time.
After omarchy restart shell:
20:51:01 omarchy idle service-ready
20:51:02 omarchy idle stay-awake: disabled state-file
20:51:02 omarchy idle idle-monitor: active
The monitor is alive again and the 5-minute screensaver fires as configured.
Ruled out as causes:
- Stay awake —
~/.local/state/omarchy/indicators/stay-awakeabsent;"stayAwake": falsethroughout. - Idle inhibitors —
hyprctl clients -jshowed 0 windows withinhibitingIdle(relevant becauseIdleMonitoris constructed withrespectInhibitors: true). - Config not reaching the service — disproved by
idle statusreporting the new values.
Likely cause
In shell/plugins/services/idle/Service.qml:
IdleMonitor {
id: idleMonitor
enabled: root.idleEnabled
timeout: root.firstIdleTimeoutSeconds
respectInhibitors: true
onIsIdleChanged: root.handleIdleChanged()
}
firstIdleTimeoutSeconds is a reactive binding on shell.shellConfig.idle, so it does update — that is exactly why statusJson() reports the new numbers. But timeout maps onto an ext-idle-notify registration with the compositor, made when the monitor is constructed. Changing it on a live monitor appears not to re-register, leaving an object that is enabled, correctly configured, and never notified again.
The bar has an explicit re-apply path for live config changes; the idle service has no equivalent for its timeouts. A re-arm on change — recreating the monitor, or toggling enabled false→true when firstIdleTimeoutSeconds changes — would likely be enough. If Quickshell's IdleMonitor is expected to support a live timeout change, this may belong upstream there instead, but the user-visible bug lands in Omarchy.
Why it matters
This is a security-relevant silent failure rather than a cosmetic one. Anyone who adjusts their screensaver or lock timeouts — the natural response to the stock 150s/300s feeling too aggressive — ends up with a session that never locks again, while every status command insists idle locking is enabled. There is no notification, no log warning, and no reason to suspect anything until you notice the screen has stayed up.
System
| Omarchy | 4.0.0-1 (stable) |
| Hyprland | 0.56.2 (efb5099) |
| Quickshell | quickshell-git 0.3.0.r20.g28771c7-2 |
| Kernel | 7.1.8-arch1-3 |
| CPU | Intel Core i7-10510U |
| GPU | Intel CometLake-U GT2 [UHD Graphics] |
omarchy debug is referenced in the docs but is not present in 4.0.0-1 (Unknown Omarchy command), so the above was collected by hand.
the symptom looks real but the mechanism in "likely cause" does not hold against quickshell's source, so a re-arm workaround may be fixing the wrong thing.
IdleMonitor::timeout is not read once at construction. it is folded into a bindable bParams alongside enabled and respectInhibitors, and that property's change callback is updateNotification, which deletes the existing ext_idle_notification_v1 and creates a new one at the current timeout — src/wayland/idle_notify/monitor.hpp:
Q_OBJECT_BINDABLE_PROPERTY(IdleMonitor, Params, bParams, &IdleMonitor::updateNotification);
this->bParams.setBinding([this] {
return Params { .enabled = ..., .timeout = this->bTimeout.value(), ... };
});
so changing timeout on a live monitor is already meant to re-register. toggling enabled false→true would go through the exact same updateNotification path, which is why i doubt it would change anything.
two things that would narrow it, both cheap on your machine since you can reproduce:
QT_LOGGING_RULES=quickshell.wayland.idle_notify=trueon the shell.createIdleNotificationlogsCreated <ptr> with timeout: N, and the destructor logs too. if you see a Created line with the new timeout after editing shell.json, the registration is being made and the bug is downstream of it; if you see nothing,updateNotificationnever ran and the binding is the place to look.createIdleNotificationresolves a seat withdisplay->lastInputDevice(), falling back todefaultInputDevice(), and returns null withCould not create idle notifier: No seat.if both are null. that log line would explain a monitor that is enabled, reports the right numbers, and never fires —bIsIdlebinds tonotification ? ... : false, so a null notification is silently a permanently-active monitor.
worth noting the second one matches your evidence better than a stale timeout does: it produces no idle-monitor: transitions at all, in either direction, which is what your six hours of journal show.
i have no hyprland here so i could not run any of this — source read only, against quickshell at 0fed22a. omarchy-shell idle status reporting the new values is consistent with either explanation, since it reads the qml properties rather than the registration.
Can confirm — hit this independently on the same stack (Omarchy 4.0.0-1, Quickshell quickshell-git 0.3.0.r20.g28771c7, Hyprland 0.56.2).
Edited idle.screensaver/idle.lock in ~/.config/omarchy/shell.json. After that, omarchy-shell idle status reported the new values with "enabled": true, but idle-monitor: idle never fired again — confirmed in the live session log: zero transitions in either direction. The screensaver/lock never triggered no matter how long the machine was left idle. omarchy restart shell brought it back immediately and it's stayed fixed since.
Ruled out the same non-causes: ~/.local/state/omarchy/indicators/stay-awake absent ("stayAwake": false), and no Hyprland-level idle inhibitor (hyprctl clients -j showed no inhibitingIdle; socket inhibitors empty). The silent, security-relevant failure mode matches the report exactly.
I'm happy to capture QT_LOGGING_RULES=quickshell.wayland.idle_notify=true output across a live re-edit if it helps decide whether updateNotification runs or whether the notifier comes back null (the null-seat theory from Chessing234 fits the evidence best).
Open PR #9570 addresses this same live-timeout failure. It explicitly pulses the IdleMonitor off and re-enables it after changes to the effective first idle timeout, coalesces rapid edits, exposes the re-arm state in diagnostics, and adds a regression test. The PR currently closes the duplicate report #9496, so linking it here as well.
Root cause is upstream in Quickshell, not Omarchy.
updateNotification frees the old notification and allocates the replacement in
the same call, so the allocator returns the same address:
Destroyed IdleNotification(0x7fda3454e210)
Created IdleNotification(0x7fda3454e210) with timeout: 20000
bNotification is then written once with a pointer equal to the old one, and
QObjectBindableProperty::setValue returns early on an equal value without
calling notify() — so the bIsIdle binding never re-subscribes. The new
notification is healthy; nothing is listening to it.
@Chessing234 was right that updateNotification is wired to timeout, and the
QT_LOGGING_RULES suggestion is what found it.
Upstream: quickshell-mirror/quickshell#938 · patch + regression test: quickshell-mirror/quickshell#1097
#9570 is worth keeping regardless — the disabled pass assigns nullptr, which
never compares equal, so the pulse re-arms deterministically. It just has to span
an event loop turn, which is why Qt.callLater didn't work in #9496.
Confirming on a newer stack than the original report, plus a data point on the enabled pulse that #9570 implements.
Omarchy 4.0.4-1 / Quickshell 0.3.1-1 (stable, not -git) / Hyprland 0.56.2 / kernel 7.2.5-3-omarchy, Intel Core Ultra 7 255HX + RTX 5070 Mobile. A script wrote idle.screensaver/idle.lock (150/300 → 900/1800) to shell.json on a shell that had been running since Sep 18. Result matches the report exactly: omarchy-shell idle status reported the new values with "enabled": true, and the journal showed zero idle-monitor: transitions for the next 22 hours.
One diagnostic worth adding: lastEventAt in statusJson() stays frozen at the timestamp just before the write, so a lastEventAt hours in the past next to a healthy-looking "enabled": true is a reliable one-line tell that the monitor is dead.
Ruled out the same non-causes: no suspend/resume in the journal, "stayAwake": false with the state file absent, hyprctl clients -j showing inhibitingIdle=false on every window, ttfx present, screensaver not toggled off.
Isolating it to the runtime write rather than to the value:
| condition | idle fires? |
|---|---|
| 900s, same running shell | no — 22h, zero transitions |
| 60s, same running shell | no — zero transitions |
60s, after omarchy restart shell |
yes, at 60s |
On the enabled pulse: @Chessing234's doubt was reasonable given that enabled and timeout both feed updateNotification, but the pulse does work in practice, and @voglster's root cause explains why. Pulsing runs updateNotification twice with a gap: disable sets bNotification to null — a genuinely different value, so setValue calls notify() — and enable then allocates a fresh one, different from null, so notify() fires again and bIsIdle re-subscribes. The single-call path fails precisely because the allocator hands back the same address.
Measured on a live shell with a stale monitor:
timeout changed to 70s at runtime -> monitor still dead
omarchy-shell idle disable; omarchy-shell idle enable
+70s exactly: idle-monitor: idle
idle-cycle-start: screensaver=70 lock=86400
Reproduced three times (60s, 70s, 75s), each firing at the configured timeout, so #9570's approach holds on 0.3.1 as well as on the -git build.
For anyone landing here from a search: omarchy-shell -q idle disable && omarchy-shell -q idle enable is a working stopgap that avoids a full shell restart. It resets the idle countdown, and should be skipped when .stayAwake is true so it doesn't clobber a deliberate Stay Awake.
This is still a bug on current quattro. The IdleMonitor in shell/plugins/services/idle/Service.qml binds its timeout to firstIdleTimeoutSeconds, but nothing re-arms it when that value changes. The cause @voglster traced to Quickshell explains why that matters: the replacement idle notification is allocated at the old one's address, so nothing re-subscribes to it. Turning the monitor off and back on across an event-loop turn passes the notification through null, which does re-arm it, as @jayrascodes measured on Quickshell 0.3.1.
Three open pull requests fix it: #8086, #9570 and #12731. #9570 is the one being brought forward. It has been merged with quattro and verified on a worker VM built from the Omarchy ISO, where idle fired at the new timeout after a live shell.json edit and stayed silent without the change. The reasons it was chosen over the other two are on each of those pull requests. It will close this issue when it merges. #9496, closed earlier as a duplicate of this one, and #13999 report the same symptom.
Until then, omarchy-shell -q idle disable && omarchy-shell -q idle enable re-arms the monitor without restarting the shell. Skip it while Stay Awake is on.
Checked by Claude Opus 5.5, which read the thread, the idle service on quattro and the three pull requests. Codex at medium effort reviewed the same material as a second opinion and agreed on each point. Its independence is not guaranteed, because it can read this session's reasoning. Nothing was run for this issue itself; the worker results are from #9570's review.
This now waits on the maintainer's decision on #9570.
Still reproducible on Omarchy 4.0.6-1 / Quickshell 0.3.2.r7 / Hyprland 0.56.2 (Intel Core Ultra X7 358H, Arc B390).
Changed idle to screensaver=30, lock=45 in shell.json on a running shell. omarchy-shell idle status showed the new values with enabled:true, but lastEvent stayed idle-monitor: active from a Stay Awake toggle 36 minutes earlier, and no idle event was logged during 5+ minutes hands-off.
A standalone Quickshell client with two IdleMonitors (timeout 3, respectInhibitors true and false) saw idle within 3s during the same period, so the compositor and inhibitor state were fine. omarchy restart shell fixed it: idle-cycle-start at 30s, lock at 45s.
Still present on Omarchy 4.0.6-1 (quickshell 0.3.2.r7.g2b4501a-1, Hyprland 0.56.2-4).
I hit it with a small user service that sets idle.screensaver/idle.lock in shell.json when switching between AC and battery: after the first change the shell never reported idle-monitor: idle again, and the laptop stayed unlocked for ~40 minutes of inactivity.
Minimal repro outside Omarchy, in a separate quickshell -p config: an IdleMonitor with a fixed timeout: 8 reports idle after 8 s, while a second one created with timeout: 30 and changed to 8 two seconds later never reports idle. Setting enabled = false and then true after the change makes it report idle again, which matches the pulse approach in #9570. As a stopgap, my service now runs omarchy-shell idle disable / enable after each change (skipped when Stay Awake is on).