Capsomnia
Taketo Fujimaki(藤巻雄飛) · A macOS menu bar app that uses Caps Lock as a switch to keep a MacBook running with its lid closed.
brew install --cask capsomnia- 30-day installs
- 55
- #1322 in App
- 1-year installs
- 111
- Last 365 days
- Latest version
- 4.3.6
- Download size
- 799KB
- pkg
- Release cadence
- Weekly
- 6 releases in 30 days
About
Capsomnia is a macOS menu bar app for keeping local work running while a MacBook lid is closed. Turn Caps Lock on to enable sleep prevention; turn it off to restore normal sleep behavior. The Caps Lock indicator shows the switch state.
- An optional auto-off timer can turn sleep prevention off after a selected duration; when it expires with the lid closed, the Mac is put to sleep.
- By default, the display sleeps when the lid closes while work continues. An optional setting can keep the display session awake as well.
- Optional controls include a custom toggle shortcut and preventing Caps Lock from forcing uppercase typing while Capsomnia is on. The latter requires macOS Accessibility permission.
- The app can start at login and provides controls from its menu bar. Installation includes a sleep-control helper and requires administrator access.
Install with brew install --cask capsomnia. This signed package requires an Apple silicon Mac and macOS 14 or later. After installation, open Capsomnia from / and use Caps Lock to control sleep prevention. Closed-lid operation can increase heat and battery use; ensure adequate airflow and a stable power source.
Sources: Capsomnia · Homebrew cask
At a glance
- Price
- Free
- System
- macOS 14 or later
- Chip
- Apple silicon
- Auto-updates
- Yes
- Repository
- Open source · MIT · Updated 2 days ago★455
- Developer
- Taketo Fujimaki(藤巻雄飛)
- Homebrew
- Available; the app updates itself
- Also known as
- capsomnia
- Homepage
- github.com/fuji-mak/Capsomnia
- Token
- capsomnia
Checked
What’s new in 4.3.6
New · OpenNavo editorial
- FixesKeeps a saved shortcut when macOS cannot register it at startup.
How to install Capsomnia on Mac
Homebrew runs the Capsomnia-4.3.6.pkg installer, which asks for an administrator password.
Install without Homebrew
Download the same file Homebrew uses: Install Details
Uninstall Capsomnia and optional data cleanup
brew uninstall --cask capsomniaA regular uninstall removes the app and keeps its settings and caches.
Deep clean (optional)
brew uninstall --zap --cask capsomnia--zap also deletes the settings, caches and other files listed in the Homebrew definition. They can include data shared with other apps and cannot be restored, and it does not guarantee that nothing is left. Back up any data you need first. To keep settings and caches, leave out --zap.
Questions about Capsomnia
Is Capsomnia safe?
Capsomnia is in Homebrew’s official catalog and has not been disabled. Since September 2026, Homebrew disables apps that fail macOS Gatekeeper checks. When installing, Homebrew checks the download from github.com against its SHA-256 checksum. It was installed 55 times through Homebrew in the last 30 days.
Is Capsomnia free?
Yes, Capsomnia is free to use. Source: fuji-mak.github.io/Capsomnia, checked Oct 17, 2026.
Is Capsomnia open source?
Capsomnia’s source code is public on GitHub (fuji-mak/Capsomnia) under the MIT license.
How do I completely uninstall Capsomnia on a Mac?
Run brew uninstall --cask capsomnia. It stops 1 background service, deletes 1 privileged helper, and forgets 1 installer receipt. To delete its settings and caches as well, run brew uninstall --zap --cask capsomnia. --zap also deletes the settings, caches and other files listed in the Homebrew definition. They can include data shared with other apps and cannot be restored, and it does not guarantee that nothing is left. Back up any data you need first. To keep settings and caches, leave out --zap. That also deletes 7 files and folders, including ~/.
Does Capsomnia run on Apple silicon (M1 and later) Macs?
Yes, and only there: it does not install on Intel Macs. It needs macOS 14 or later.
Where does Capsomnia store its settings and data?
Its settings are in ~/. These locations come from Homebrew’s clean-up list.
What is the latest version of Capsomnia?
The latest version is 4.3.6, added to Homebrew on Nov 16, 2026. Capsomnia updates itself; to update it with Homebrew, run brew upgrade --cask --greedy capsomnia.
What else does installing Capsomnia add?
It installs through a .pkg installer, which asks for an administrator password.
Similar Apps
- ProcessSpyA macOS process monitor with CPU and memory history, process inspection, hierarchy views, and search.
- SpaceJumpA macOS menu bar utility for naming desktop Spaces and switching between them.
- McBopomofoA macOS input method for typing Mandarin Chinese with Bopomofo, with several keyboard layouts and editable words.
- CrestMac notch dashboard with music, files, calendar widgets and coding-agent approvals.