Skip to content

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.

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.service

On 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+R

Or from a terminal:

Terminal window
on-resume

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.log

Use this when the machine wakes but the shell or desktop helpers look stale:

  1. Press SUPER+SHIFT+R, or run on-resume.
  2. Wait for the shell indicators to refresh.
  3. If something still looks wrong, read ~/.local/state/on-resume.log.

If shell widgets stay stale, restart the Omarchy shell under Wayland:

Terminal window
QT_QPA_PLATFORM=wayland omarchy restart shell

If git status in the bar stays stale, clear the generic status-bar caches and run recovery again:

Terminal window
rm -rf ~/.cache/status-bar/git-diff* ~/.cache/status-bar/git-notifications*
on-resume