Skip to content

SleepSwitch 1.5.0

Latest

Choose a tag to compare

@github-actions github-actions released this 17 Aug 21:11
· 1 commit to main since this release

What changed

  • A cue when the lid moves while the mode is on: a muted porcelain tone as it closes,
    a higher one as it opens. Off from the menu, and silent with the mode off — closing the
    lid then means sleep, which needs no announcing.
  • Only on Macs that have a lid. An iMac has no AppleClamshellState to report, so neither
    the watcher nor the menu item exists there.
  • The sounds are synthesised at build time like the icon, so no audio files live in the
    repository and nobody's sample is being borrowed.
  • The clamshell, unlike the sleep ban, does arrive through the IOKit interest notification,
    so this needs no polling. Unrelated power messages share that channel, so the state is
    re-read and compared rather than trusting an undocumented message type.

Menu bar toggle that stops your MacBook from sleeping — lid closed included.

Install

Download the .pkg and open it. The installer puts the app in Applications,
launches it, and optionally adds a sudo rule so toggling never asks for a
password.

The app is not signed with an Apple certificate. macOS blocks the first
open: right-click the file → OpenOpen again. One-time.

The .zip is the same app without the installer, if you prefer to place it by hand.

Usage

Left click the icon to toggle, right click for the menu. Moon — normal mode,
coffee cup — sleep blocked, triangle — partially on (the lid still sleeps).

macOS 13 or newer. Universal — Apple Silicon and Intel. English and Russian.


Установка

Скачайте .pkg и откройте его. Установщик положит приложение в «Программы»,
запустит его и (по желанию) добавит правило sudo, чтобы режим переключался
без ввода пароля.

Приложение не подписано сертификатом Apple. При первом запуске macOS
откажется открывать пакет. Правой кнопкой по файлу → «Открыть»
в диалоге ещё раз «Открыть». Один раз.

Файл .zip — то же приложение без установщика.

Управление

Левый клик по иконке — включить или выключить, правый — меню. Луна — обычный
режим, чашка — сон запрещён, треугольник — включён частично (крышка усыпит).

Требуется macOS 13 или новее. Universal — Apple Silicon и Intel. Русский и английский.