# Capsomnia

A macOS menu bar app that uses Caps Lock as a switch to keep a MacBook running with its lid closed.

> This is the Markdown version of the Capsomnia page on OpenNavo, with the same facts as the web page: <https://opennavo.com/apps/capsomnia>

- **Latest version**: `4.3.6`
- **Developer**: Taketo Fujimaki（藤巻雄飛）
- **Homepage**: <https://github.com/fuji-mak/Capsomnia/>
- **Categories**: [Utilities](https://opennavo.com/categories/utilities)
- **Install**: `brew install --cask capsomnia`
- **30-day installs**: 55
- **Homebrew**: Available; the app updates itself
- **Download URL**: <https://github.com/fuji-mak/Capsomnia/releases/download/v4.3.6/Capsomnia-4.3.6.pkg>
- **SHA-256**: `294ebaddc81aae0175d78dabae723f9ccf587a8bc43e7639a811e0f87a4c74fa`
- **Installer packages**: Capsomnia-4.3.6.pkg

SHA-256 only checks that the download is complete; it is not a security certification.

## Installation and removal contents

```json
[
  {
    "declaration": {
      "uninstall": [
        {
          "delete": [
            "/Applications/Capsomnia.app",
            "/etc/sudoers.d/capsomnia",
            "/Library/PrivilegedHelperTools/capsomnia-pmset"
          ],
          "launchctl": "com.github.fuji-mak.capsomnia",
          "pkgutil": "com.github.fuji-mak.capsomnia.pkg"
        }
      ]
    },
    "phase": "uninstall",
    "sources": [],
    "type": "uninstall"
  },
  {
    "declaration": {
      "pkg": [
        "Capsomnia-4.3.6.pkg"
      ]
    },
    "phase": "install",
    "sources": [
      "Capsomnia-4.3.6.pkg"
    ],
    "type": "pkg"
  },
  {
    "declaration": {
      "zap": [
        {
          "delete": [
            "/Library/LaunchAgents/com.github.fuji-mak.capsomnia.plist",
            "/Library/PrivilegedHelperTools/capsomnia-pmset"
          ],
          "trash": [
            "~/Library/Caches/Capsomnia",
            "~/Library/Caches/com.github.fuji-mak.capsomnia",
            "~/Library/HTTPStorages/com.github.fuji-mak.capsomnia",
            "~/Library/Logs/Capsomnia",
            "~/Library/Preferences/com.github.fuji-mak.capsomnia.plist"
          ]
        }
      ]
    },
    "phase": "cleanup",
    "sources": [],
    "type": "zap"
  }
]
```

## 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 `/Applications` 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](https://github.com/fuji-mak/Capsomnia/) · [Homebrew cask](https://raw.githubusercontent.com/Homebrew/homebrew-cask/HEAD/Casks/c/capsomnia.rb)

## System requirements

- macOS 14 or later · Version: 4.3.6 · Apple silicon · <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/c/capsomnia.rb> · Checked 2026-11-30
  - <https://github.com/fuji-mak/Capsomnia/releases/download/v4.3.6/Capsomnia-4.3.6.pkg>
  - SHA-256: `294ebaddc81aae0175d78dabae723f9ccf587a8bc43e7639a811e0f87a4c74fa`

## Price

- Free — Official website: <https://fuji-mak.github.io/Capsomnia/> · <https://fuji-mak.github.io/Capsomnia/> · Checked 2026-10-17

## Capsomnia security facts

Only facts that can be checked, each with its source and date. This is not a safety certification. To check the files you downloaded, scan them on your Mac with OpenNavo.

- <https://github.com/fuji-mak/Capsomnia> · Open source: Yes — <https://github.com/fuji-mak/Capsomnia> · Checked 2026-11-14

## Uninstall

- `brew uninstall --cask capsomnia`

A regular uninstall removes the app and keeps its settings and caches.

### Uninstalling also removes

- Background services (launchctl): `com.github.fuji-mak.capsomnia` — <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/c/capsomnia.rb> · These entries come from the Homebrew definition, checked 2026-11-30. They say what it declares, not what is on your Mac.
- Installer receipts (pkgutil): `com.github.fuji-mak.capsomnia.pkg` — <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/c/capsomnia.rb> · These entries come from the Homebrew definition, checked 2026-11-30. They say what it declares, not what is on your Mac.
- Files and folders: `/Applications/Capsomnia.app` — <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/c/capsomnia.rb> · These entries come from the Homebrew definition, checked 2026-11-30. They say what it declares, not what is on your Mac.
- Files and folders: `/etc/sudoers.d/capsomnia` — <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/c/capsomnia.rb> · These entries come from the Homebrew definition, checked 2026-11-30. They say what it declares, not what is on your Mac.
- Files and folders: `/Library/PrivilegedHelperTools/capsomnia-pmset` — <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/c/capsomnia.rb> · These entries come from the Homebrew definition, checked 2026-11-30. They say what it declares, not what is on your Mac.

### 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`.

A regular uninstall removes the app and keeps its settings and caches.

- Files and folders: `~/Library/Caches/Capsomnia` — <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/c/capsomnia.rb> · These entries come from the Homebrew definition, checked 2026-11-30. They say what it declares, not what is on your Mac.
- Files and folders: `~/Library/Caches/com.github.fuji-mak.capsomnia` — <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/c/capsomnia.rb> · These entries come from the Homebrew definition, checked 2026-11-30. They say what it declares, not what is on your Mac.
- Files and folders: `~/Library/HTTPStorages/com.github.fuji-mak.capsomnia` — <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/c/capsomnia.rb> · These entries come from the Homebrew definition, checked 2026-11-30. They say what it declares, not what is on your Mac.
- Files and folders: `~/Library/Logs/Capsomnia` — <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/c/capsomnia.rb> · These entries come from the Homebrew definition, checked 2026-11-30. They say what it declares, not what is on your Mac.
- Files and folders: `~/Library/Preferences/com.github.fuji-mak.capsomnia.plist` — <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/c/capsomnia.rb> · These entries come from the Homebrew definition, checked 2026-11-30. They say what it declares, not what is on your Mac.
- Files and folders: `/Library/LaunchAgents/com.github.fuji-mak.capsomnia.plist` — <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/c/capsomnia.rb> · These entries come from the Homebrew definition, checked 2026-11-30. They say what it declares, not what is on your Mac.
- Files and folders: `/Library/PrivilegedHelperTools/capsomnia-pmset` — <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/c/capsomnia.rb> · These entries come from the Homebrew definition, checked 2026-11-30. They say what it declares, not what is on your Mac.

## Latest release notes

### 4.3.6 (2026-11-16)

Capsomnia 4.3.6 keeps a Mac awake with the lid closed, and this version keeps a saved shortcut when macOS cannot register it.

**Fixes**

- Keeps a saved shortcut when macOS cannot register it at startup.
- Keeps the same shortcut after recording it, if registration fails.
- Menu, shortcut, CLI, timer, and sleep behavior stay the same.

## Facts and sources

- <https://opennavo.com/apps/capsomnia>
- <https://opennavo.com/apps/capsomnia/versions>
- <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/c/capsomnia.rb> · Checked 2026-11-30
- <https://formulae.brew.sh/cask/capsomnia>
- <https://fuji-mak.github.io/Capsomnia/> · Checked 2026-10-17
- <https://github.com/fuji-mak/Capsomnia> · Checked 2026-11-14
