Close the lid. Display sleeps. System stays alive. Pure Swift, near-zero memory, no Electron.
NonSleep intercepts the lid close event. The display turns off, but the system never sleeps.
One job. Done perfectly.
One-click toggle from your menu bar. Green means on, gray means off. Nothing more.
Full terminal control. nonsleep to enable, nonsleep stop to disable.
Detects lid state in real-time. Sleeps display on close, wakes on open. Automatic.
Pure Swift + IOKit. Under 2 MB. Near-zero CPU. No Electron, no background web views.
Run nonsleep for 2h to auto-disable after a set duration.
Menu bar, CLI, and daemon stay perfectly in sync through a shared state file.
Click the moon icon in the menu bar.
Every feature accessible from your terminal.
nonsleepEnable sleep preventionnonsleep stopDisablenonsleep statusShow current statenonsleep toggleFlip ON/OFFnonsleep for 2hTemporary modenonsleep for 30mHalf hour timerThree components, one shared core, zero bloat.
macOS 13.0+ · Apple Silicon & Intel · Under 1 MB