Closed lid
Keeps work running with the lid closed
Turn Caps Lock on, close the MacBook, and local jobs keep running. Your Mac can remain reachable over SSH when remote login and networking are available.
Caps Lock becomes a physical keep-awake switch. Flip it on, close the lid, and let your background work keep running.
Apple silicon · macOS 14 Sonoma+ · Signed & notarized · Open source
Caps Lock on
Runs pmset -a disablesleep 1 — sleep is disabled.
Caps Lock off
Runs pmset -a disablesleep 0 — normal sleep behavior.
Flip Caps Lock on, close the lid, and let long-running local work continue. Capsomnia keeps your MacBook awake until you turn it off. The Caps Lock LED shows the sleep-prevention state at a glance.
Keep long Codex or Claude Code tasks running with the lid closed.
Drive your Mac remotely without it dropping into sleep mid-session.
Long compiles and large downloads finish on their own time.
Keep Codex Mobile and other mobile sessions connected so work does not stop.
Features
Capsomnia is a small Mac app focused on closed-lid continuity, physical status visibility, and transparent open-source design.
Closed lid
Turn Caps Lock on, close the MacBook, and local jobs keep running. Your Mac can remain reachable over SSH when remote login and networking are available.
Physical state
When the light is on, sleep prevention is on. You can check the state from the keyboard and keep your menu bar clean.
Open source
Released under the MIT License. You can inspect the source, package install scripts, helper commands, and security model before installing.
The menu bar app runs as the current user — never as root. Changing system sleep settings needs elevated privileges, so Capsomnia uses one small, fixed, root-owned helper through passwordless sudo.
sudo -n /Library/PrivilegedHelperTools/capsomnia-pmset on
sudo -n /Library/PrivilegedHelperTools/capsomnia-pmset off
sudo -n /Library/PrivilegedHelperTools/capsomnia-pmset display-sleep
The package keeps the app, helper, and system LaunchAgent root-owned. The sudoers rule is limited to these three exact commands.
/usr/bin/pmset -a disablesleep 1
/usr/bin/pmset -a disablesleep 0
/usr/bin/pmset displaysleepnow
It accepts on, off, and display-sleep and nothing else.
Capsomnia does not read keyboard events. It checks only the local Caps Lock state every 250 milliseconds.
macOS may show “Taketo Fujimaki” as a background item. This is the LaunchAgent that starts Capsomnia at login and recovers after crashes.
Quitting the app restores normal sleep behavior. Sleep-disabled closed-lid use can increase heat and battery drain — mind airflow, power, and runtime.