Skip to content
Capsomnia
EN
Download
Capsomnia LED icon

Give Caps Lock
a real job

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.

A physical switch for AI agents

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.

Features

Keep your Mac working after the lid closes

Capsomnia is a small Mac app focused on closed-lid continuity, physical status visibility, and transparent open-source design.

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.

Physical state

The Caps Lock LED shows status

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

Completely free, open-source design

Released under the MIT License. You can inspect the source, package install scripts, helper commands, and security model before installing.

Capsomnia settings window

Security model

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.

  • No network requests
  • No telemetry
  • No accounts

The app can only invoke

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.

The helper only ever runs

/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.

No Input Monitoring

Capsomnia does not read keyboard events. It checks only the local Caps Lock state every 250 milliseconds.

Background item prompt

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.

Links