Turn off your Mac's screen from the menu bar with one click, and change the brightness of any monitor. Your Mac keeps running: downloads, music and builds carry on while the display sleeps.
Free and open source · macOS 14 or later · Apple silicon and Intel · under 1 MB
- Download ScreenOff.dmg and open it.
- Drag ScreenOff into Applications.
- Open ScreenOff from Applications. A power icon appears in your menu bar.
ScreenOff isn't notarized by Apple, so macOS blocks it the first time you open it. Close that message, go to System Settings → Privacy & Security, scroll down and click Open Anyway. You only do this once.
If you prefer Terminal, this does the same thing:
xattr -dr com.apple.quarantine /Applications/ScreenOff.appClick the power icon, then Sleep Display. Move the mouse or press a key to wake the screen.
Drag a display's slider to change its brightness. This works on external monitors too, which macOS can't dim on its own. ScreenOff talks to the monitor over the cable (DDC/CI), the same way the monitor's own buttons change it. Many monitors still glow at brightness 0, so the bottom of the slider also lowers the monitor's contrast. ScreenOff puts your contrast back when you drag up or quit.
Tick Open at Login in the panel to start ScreenOff with your Mac. Press Esc or click elsewhere to close the panel.
Putting a display to sleep with a click is harder than it sounds, because any input wakes it again. ScreenOff handles the two cases that trip up a plain pmset displaysleepnow:
- It waits until your hand leaves the mouse and keyboard before it sleeps the screen.
- A finger resting on a Magic Mouse sends touch events that wake the display without moving the pointer. ScreenOff watches for a few seconds after sleeping and puts the screen back to sleep if nothing you did on purpose woke it.
How do I turn off my Mac's display without putting the Mac to sleep?
Click Sleep Display in ScreenOff. It runs Apple's pmset displaysleepnow, which sleeps only the screen. You can also type that command in Terminal.
Does it need admin rights or special permissions?
No. Any user can run pmset displaysleepnow. ScreenOff asks for no permissions.
Will my Mac lock when the screen turns off? That follows your setting in System Settings → Lock Screen → Require password after screen saver begins or display is turned off. ScreenOff doesn't change it.
Why is there no slider for my monitor? External monitor brightness needs an Apple silicon Mac and a monitor with DDC/CI turned on (check its on-screen menu). Some USB-C docks, DisplayLink adapters and TVs don't pass DDC through. The built-in display of a MacBook always gets a slider.
My menu bar manager hides the icon. Drag the icon into the visible section of Bartender, Ice or Thaw. With the icon hidden, the panel opens at the top right of the screen.
You need the Xcode command line tools (xcode-select --install).
git clone https://github.com/codeclawd/screenoff-mac.git
cd screenoff-mac
./build.sh # build/ScreenOff.app
./make-dmg.sh # build/ScreenOff.dmgThe app is about 500 lines of Swift and SwiftUI with no dependencies. Sources/main.swift runs the menu bar item and the sleep logic. Sources/Brightness.swift handles brightness. Sources/PanelView.swift draws the panel.
External monitor brightness follows the DDC method from MonitorControl (MIT License). If you want keyboard brightness keys, volume control and more per-monitor settings, use MonitorControl.
MIT. See LICENSE.