Skip to content

nelsonfigueroa/blackscreen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BlackScreen

BlackScreen is a macOS menu bar app that turns off your MacBook's built-in display without closing the lid. The idea is to max out performance when an external monitor is connected while leaving the laptop open for better heat dissipation.

Note that this was built with heavy assistance from Claude Code. I reviewed to the best of my abilities but proceed with caution.

This has only been tested on a MacBook Pro 16-inch with M3 Pro chip.

This app uses a private macOS API (CGSConfigureDisplayEnabled) that is not publicly documented by Apple. It could break in future macOS updates.

If you want to be able to do this and much, much more, consider getting BetterDisplay instead.

What it does

  • Adds a small icon to your menu bar. There is no dock icon.
  • Clicking it shows you a dropdown with an option to turn off the built-in display
  • Automatically re-enables the built-in display if your external monitor disconnects abruptly
  • Re-enables the built-in display when you quit the app

Install

Option 1: Download the pre-built app

  1. Download BlackScreen.app.zip from Releases
  2. Unzip it
  3. Double click BlackScreen.app to run it. You can optionally move it to your Applications folder along with all your other apps.

Gatekeeper warning: Since the app is not signed by Apple, macOS will block it on first launch. To bypass this:

  1. Double click BlackScreen.app — you'll see a "Not Opened" dialog. Click "Done".
  2. Go to System Settings → Privacy & Security, scroll down to the Security section.
  3. Click on "Open Anyway" next to the BlackScreen message.
  4. Click "Open Anyway" again in the confirmation dialog.

You only need to do this once.

Alternatively, run this in a terminal:

xattr -cr /path/to/BlackScreen.app

Option 2: Build from source using the included build script

Requires Xcode Command Line Tools (xcode-select --install).

git clone https://github.com/nelsonfigueroa/blackscreen.git
cd blackscreen
./build.sh

You'll see BlackScreen.app created in the directory. Double click it to run. You will not need to get past Gatekeeper like with Option 1 if you build it locally yourself. You can optionally move it to your Applications folder along with all your other apps

Troubleshooting

If at any point your built-in display remains black even after disconnecting an external monitor, try closing and opening the laptop lid to reset.

About

Clamshell mode for MacBooks without needing to close the lid

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors