SleepSwitch 1.2.0
What changed
- A background update now arrives as a system notification with Download and Skip
this version, instead of a modal dialog thrown over whatever you were doing. A check
you start from the menu still answers in a window — you are waiting for that one. - Turning the mode on at launch no longer means a password dialog at every login. Without
the sudo rule it comes up in partial mode instead, and ticking the checkbox now explains
that and offers to set the rule up. - State is re-read every 30 seconds rather than every 5, plus on wake and whenever the menu
opens. macOS publishes no notification for this setting — the general IOKit interest
notification on IOPMrootDomain does not fire for it and IOPMLib exposes nothing public —
so polling stays, just far less of it. - The sources are split by responsibility instead of living in one file, and all code,
comments and script output are English.
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 → Open → Open 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. Русский и английский.