Releases: AppsGanin/SleepSwitch
Release list
SleepSwitch 1.5.0
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
AppleClamshellStateto 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 → 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. Русский и английский.
SleepSwitch 1.4.0
What changed
- Uninstall from the menu, behind a confirmation. Anyone who installed the
.pkghad no
way to remove the app cleanly —uninstall.shlives in the repository, not on their disk.
It clears the sleep ban first, while the sudo rule is still there to make that quiet, then
removes the app, the rule, the receipt and the settings, and quits. - A warning the first time the mode is switched on without the sudo rule. The ban is a
system setting: without the rule the app cannot clear it quietly at logout, and a modal
password dialog there would block the shutdown — so it survived into the next boot, where
the app might not even be running to show it. The warning offers to set the rule up on the
spot, and is shown once rather than on every switch.
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. Русский и английский.
SleepSwitch 1.3.1
What changed
- The battery settings are hidden on a Mac with no built-in battery instead of sitting
there inert. - The battery is now identified by power-source type rather than by taking the first source
the system lists. A UPS is a power source too, so on a desktop it could have passed for a
battery — and on a laptop with a UPS attached the app could have read the wrong one.
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. Русский и английский.
SleepSwitch 1.3.0
What changed
- Battery guard. Keeping a Mac awake makes one mistake easy — mode on, lid shut, laptop
in a bag, running hot until the battery is flat. The mode now switches itself off at a
charge you choose, 20% by default, and optionally the moment the power adapter is
unplugged. A notification says which of the two fired. - Neither trips on a desktop Mac or when the battery reading is missing: dropping the mode
for a reason the app cannot name would be worse than leaving it alone. - Power source changes arrive as events rather than polling —
IOPSNotificationCreateRunLoopSource
is public, unlike anything covering the sleep ban.
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. Русский и английский.
SleepSwitch 1.2.1
What changed
- Notification permission is asked for once, the first time there is an update to report,
instead of on every check. If notifications are denied the app falls back to a window,
but only once per version — a daily popup would be exactly the interruption the
notification was meant to avoid. - The sleep-mode state machine now takes its privileged half as a dependency, so the paths
that matter are covered by tests: a declined password leaves the mode partial rather than
off, a ban the app did not set is never cleared on the way out, logging out never opens a
password dialog, and partial mode is not mistaken for the mode being switched off.
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. Русский и английский.
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. Русский и английский.
SleepSwitch 1.1.2
What changed
- The menu now shows which version you are running. With an app that updates itself, the
answer used to require Finder → Get Info. - A failed update check no longer counts as a check. Being offline once used to postpone
the next attempt by a full day. - CI installs the built
.pkgfor real and inspects what it did: thesudorule is
validated withvisudo, its mode and owner are asserted, and it must grant exactly the
twopmsetcommands and nothing else. Thenuninstall.shruns and the removal is
verified. These installer scripts run as root and had no test coverage at all.
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. Русский и английский.
SleepSwitch 1.1.1
What changed
- Removed the «Keep the screen on» checkbox. The screen now stays lit whenever the mode is
on, and dims normally when it is off. The switch was confusing: its only effect showed up
after the idle timer expired — tens of minutes later — so toggling it looked like it did
nothing at all.
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. Русский и английский.
SleepSwitch 1.1.0
What changed
- English and Russian throughout: app menu, alerts, and the installer, following the
system language. - Update check against GitHub releases, once a day, switchable from the menu. The app
downloads the.pkgand hands it to the system Installer instead of replacing itself;
requests are pinned tohttpson GitHub hosts, redirects included. - A missing translation now fails the build —
Tools/check-localization.shdiffs the
L("…")keys in the sources against everyLocalizable.strings. - Tests for version comparison and download-source filtering, run in CI.
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. Русский и английский.
SleepSwitch 1.0.1
What changed
- App icon, drawn in code at build time.
- English README alongside the Russian one.
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. The interface is Russian-only in this version.
Установка
Скачайте .pkg и откройте его. Установщик положит приложение в «Программы»,
запустит его и (по желанию) добавит правило sudo, чтобы режим переключался
без ввода пароля.
Приложение не подписано сертификатом Apple. При первом запуске macOS
откажется открывать пакет. Правой кнопкой по файлу → «Открыть» →
в диалоге ещё раз «Открыть». Один раз.
Файл .zip — то же приложение без установщика.
Управление
Левый клик по иконке — включить или выключить, правый — меню. Луна — обычный
режим, чашка — сон запрещён, треугольник — включён частично (крышка усыпит).
Требуется macOS 13 или новее. Universal — Apple Silicon и Intel. Интерфейс в этой версии только на русском.