☾ → ☕
SleepToggle
A macOS menu bar button that keeps your Mac awake — even with the lid closed.
Install
curl -fsSL https://sleep.138.dk/install.sh | bash
Paste into Terminal. Compiles the app on your Mac, asks for your password once, and puts a ☾ in your menu bar. Needs Apple's Command Line Tools — the script offers to install them if missing.
What it does
- ☾ — normal sleep
- ☕ — sleep disabled, even with the lid closed
- Click the icon to switch
What the installer touches
~/Applications/SleepToggle.app— the app, compiled locally/etc/sudoers.d/pmset-disablesleep— allowspmset -a disablesleepwithout a password, nothing else~/Library/LaunchAgents/com.sleeptoggle.plist— starts it at login
Source: install.sh · SleepToggle.swift · uninstall.sh
Uninstall
curl -fsSL https://sleep.138.dk/uninstall.sh | bash
Removes all of the above and re-enables normal sleep.