Resume Recovery
on-resume-monitor watches logind for resume events and runs on-resume, which refreshes desktop services and shell widgets that can go stale after sleep.
Where it runs
Section titled “Where it runs”The dot-on-resume-monitor.service user unit runs on-resume-monitor throughout the session. It calls on-resume after logind reports that sleep has ended.
systemctl --user status dot-on-resume-monitor.serviceOn the laptop, on-resume also re-arms keyboard backlight handling.
You can run the recovery manually without auto-opening Twitch streams with the shared binding:
SUPER+SHIFT+ROr from a terminal:
on-resumeWhat it refreshes
Section titled “What it refreshes”on-resume detaches itself, writes a fresh log, then:
- Re-arms keyboard backlight handling when available.
- Gracefully restarts
twitch-notifications, auto-opening configured live channels after an automatic resume. - Refreshes the Omarchy shell indicators.
- Refreshes the Quickshell git diff and notification widgets.
The SUPER+SHIFT+R binding passes --no-auto-open, so manual recovery restarts Twitch without opening live channels.
The log is written to:
${XDG_STATE_HOME:-~/.local/state}/on-resume.logManual recovery flow
Section titled “Manual recovery flow”Use this when the machine wakes but the shell or desktop helpers look stale:
- Press
SUPER+SHIFT+R, or runon-resume. - Wait for the shell indicators to refresh.
- If something still looks wrong, read
~/.local/state/on-resume.log.
Troubleshooting
Section titled “Troubleshooting”If shell widgets stay stale, restart the Omarchy shell under Wayland:
QT_QPA_PLATFORM=wayland omarchy restart shellIf git status in the bar stays stale, clear the generic status-bar caches and run recovery again:
rm -rf ~/.cache/status-bar/git-diff* ~/.cache/status-bar/git-notifications*on-resume