Simple menu bar utility that displays the current main-display brightness for macOS 26. The aim is to bring back the 16-cell brightness bar in the macOS 26 menu bar.
The project uses private DisplayServices/CoreDisplay SPI calls (mirroring the nriley/brightness fallback chain).
- Menu bar extra that mimics the classic 16-cell brightness HUD with crisp dot rendering.
- Popover view showing both the dot grid and an exact percentage for the current brightness.
- Polling monitor that keeps the display in sync via DisplayServices/CoreDisplay/IOKit fallbacks.
- Runs as an accessory app so no Dock icon appears while the utility is active.
- SwiftUI-based implementation with reusable components for the tile and menu icon.
You can build the app without opening Xcode using xcodebuild. From the repository root run:
xcodebuild -project brightness-util.xcodeproj \
-scheme brightness-util \
-configuration Release \
-derivedDataPath build \
CODE_SIGNING_ALLOWED=NO \
clean buildThis places the release .app bundle at build/Build/Products/Release/brightness-util.app.
- To run immediately, execute
open build/Build/Products/Release/brightness-util.app. - For direct CLI execution, run
build/Build/Products/Release/brightness-util.app/Contents/MacOS/brightness-util. - Move the
.appinto/Applications(or anywhere else) to keep it handy between builds.
- To share the app, zip the
.appbundle or package it into a.dmg(e.g. withcreate-dmgor Disk Utility) before distributing. When zipping, use Finder’s Compress option orditto -c -k --sequesterRsrc --keepParent brightness-util.app brightness-util.zipto avoid stripping resource forks.
Unsigned builds that travel over AirDrop, Messages, or a downloaded .zip pick up macOS’s quarantine flag. Gatekeeper interprets the unsigned/quarantined combo as “brightness-util.app is damaged and can’t be opened.” You just need to remove the quarantine attribute and reopen it.
-
Copy
brightness-util.appto a writable folder (e.g.~/Applications). -
Run the following in Terminal, substituting the actual path if it differs:
xattr -dr com.apple.quarantine "/Users/<username>/Applications/brightness-util.app" -
Double-click the app again. The first launch will still show the usual “Unknown developer” prompt—choose Open to continue.
If they already tried to launch it once, System Settings → Privacy & Security will show an Open Anyway button for brightness-util. Clicking that clears the quarantine flag for that copy without using Terminal.
- The SwiftUI preview for
ContentViewsits behind#if DEBUGso release builds skip the preview helper and avoid instantiatingBrightnessMonitoroutside Xcode previews.
