kairos-tech-oh

Omarchy Insomnia — Development skill for Claude Code

Development community

Keeps the machine awake and on the network so long-running Claude Code and other agentic sessions survive.

How to install Omarchy Insomnia

This entry records only its repository, not the path inside it, so there is no exact command to give. Open kairos-tech-oh/omarchy-insomnia and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Omarchy Insomnia does

Keeps the machine awake and on the network so long-running Claude Code and other agentic sessions survive. Omarchy bar widget holding a logind sleep/idle inhibitor, with optional lid and screen-lock holds.

Alternatives in Development

README

Insomnia

An Omarchy bar widget that keeps the machine awake and on the network, so a long-running Claude Code session — or any other agentic session — is still running when you come back to it.

`󰒲` in the bar means the machine will sleep normally. `󰒳` means Insomnia is holding it awake, with the remaining time beside it when the session is timed.

  • Left click toggles the session on and off.
  • Right click opens the settings popup.

What it actually does

Three separate things stop an unattended session, and Insomnia addresses them independently.

Suspend and idle (always, while enabled)

Insomnia runs

systemd-inhibit --what=sleep:idle --who=Insomnia --mode=block sleep infinity

for as long as the session is on. That is an ordinary logind block inhibitor taken as your own user — no privilege escalation, no authentication prompt, nothing written to system state. It stops a requested suspend, logind's own idle action, and anything else that asks logind politely before suspending. Releasing it is just ending the process, which Quickshell does when the session ends or the shell exits.

You can see it while it is held:

systemd-inhibit --list

The lid (optional, off by default)

Turning on **Ignore the lid closing** adds `handle-lid-switch` to the same inhibitor, so closing a laptop no longer suspends it.

This one is off by default on purpose. A laptop that keeps running with the lid shut, in a bag, gets hot enough to matter. Use it when the machine is on a desk, not when it is about to be carried.

The screen (optional, off by default)

Turning on **Keep the screen on** holds Omarchy's own stay-awake indicator — the same state `omarchy toggle idle` sets — which suppresses the screensaver and the idle lock.

Agent sessions do not need this: locking the screen does not stop anything that is running. It is there for when you want to watch the work happen.

Insomnia takes ownership of that indicator with a random claim id writte