Capsomnia is a lightweight, open-source macOS utility that transforms the Caps Lock key into a physical switch for preventing system sleep. It enables MacBooks to continue running background tasks even when their lids are closed. Users can activate sleep prevention by enabling Caps Lock and restore normal behavior by disabling it. The application is useful for long-running development tasks, AI agents, downloads, remote access, and unattended scripts. Its menu bar interface provides status indicators, customizable keyboard shortcuts, and automatic shutdown timers. Optional settings preserve display availability for remote graphical operations and prevent unwanted uppercase typing. Capsomnia also offers hotspot connectivity maintenance, automatic startup, and optional command-line integration without requiring accounts or collecting telemetry.
Features
- Caps Lock-controlled sleep prevention during closed-lid MacBook operation
- Configurable automatic shutoff timers with custom duration settings
- Custom keyboard shortcuts and menu bar sleep status indicators
- Optional display wakefulness for remote desktop and computer automation
- Hotspot connectivity maintenance and optional Caps Lock capitalization suppression
- Command-line integration, automatic startup, and privacy-focused local operation