Omarchy Insomnia — Development skill for Claude Code
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
- Claude Token Efficient — One CLAUDE.md file 3.8k ★
- Memory Gc — Inspect or rotate the autopilot ledger JSONL files (findings.jsonl, negatives.jsonl) 3.8k ★
- Contributing To Auto-claude-code-research-in-sleep (aris) — English 中文版 Thank you for your interest in contributing to ARIS 3.1k ★
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
Related Skills
Goguma
Wakes your Mac for scheduled jobs, holds it awake while long work finishes, and lets it sleep otherwise. Finds
macOS Sleep Switch
Free macOS menu-bar app that keeps Codex, Claude Code, OpenCode, and other long-running work awake.
Agent Caffeine
Keep macOS awake while a CLI coding agent works, and let it sleep when the network dies
Awake
Keep your Mac awake with the lid closed - safe by default, built for humans and agents
Caffeine
Keep your Mac awake while you work, then let it sleep when your coding agent waits for you.
Claude Bridge
Keeps your machine reachable for Claude Code dispatch: starts Claude Desktop with your session, restarts it if
Related Agents
Omarchy Plugin Architect
Design and build Omarchy (Quickshell/QML) bar-widget, panel, and service plugins that actually work on a stock
Widget Test Specialist
Use this agent to write widget tests and unit tests for Flutter code. Give it a screen, widget, or function an
Operador
Operador de infraestructura local del Framework Bot en CachyOS + Omarchy. Maneja Docker/compose (stop, up -d -