Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

 
 

Latest commit

 

History

4 Commits

Folders and files

Repository files navigation

NotchFill

Open source tool that lets games on a notched MacBook use the whole display, including the strip beside the notch, which macOS normally leaves black in full screen. Inspired by ProMax Display; no code is shared with it.

Status: early. Everything works without SIP changes. Measurements and how it works: docs/RESEARCH.md.

Features

Feature How Needs
Native full screen into the notch strip A small library (libNotchFillHook.dylib) is loaded into the game. It removes AppKit's cut below the notch and keeps the full screen window above the black menu bar. Start the game from the menu (Launch Game with Notch Fill…) or, for Steam, use Copy Steam Launch Option and paste it in the game's Properties › Launch Options. Game without hardened runtime (most games). Code runs inside the game: do not use it with online anti-cheat games.
Game resolution (Unity) Menu › Game Resolution: Full / 75% / 50% of the whole display (e.g. 3456×2234). Unity games then start with -screen-width/-screen-height, so the picture has the aspect of the whole screen instead of 16:10 with bars. Used by Launch Game… and included in the Steam option (copy it again after a change). Unity game
SDL games use the notch area Sets SDL_VIDEO_MAC_FULLSCREEN_SPACES=0 with launchctl setenv, so SDL2/SDL3 games use a borderless window over the whole display (1728×1117 instead of 1728×1084 on a 16" MacBook Pro). Restart Steam and the game after you change it. Apps that you start from Terminal do not get it; use SDL_VIDEO_MAC_FULLSCREEN_SPACES=0 ./game there. –
Rear-view mirror Move the pointer behind the notch: a panel below the notch shows what is there, pointer included. Clicks go to the app behind. Toggle: ⌃⌥⌘M. Screen Recording
Hide menu bar and Dock Turns on auto-hide for both, and puts back your own settings when you turn it off or quit (also after a crash, on the next launch). –

Limits: games with the hardened runtime block the library, also when only the inner app of a wrapper is hardened (NotchFill tells you). For such a game you can patch its files (backup first, undo any time):

python3 scripts/patch-game.py patch   "/Applications/Some Game.app"
python3 scripts/patch-game.py restore "/Applications/Some Game.app"

The patch adds a weak load command for the library (copied to ~/Library/Application Support/NotchFill/) and re-signs the app ad-hoc with its own entitlements. The game then starts normally (Steam, Finder) with notch fill and NotchFill's Game Resolution. A game update or Steam "verify files" removes the patch. While a game is in full screen, the menu bar does not slide down at the top edge; use the rear-view mirror to see what is behind the notch.

Games that keep 16:9

Some games letterbox the picture to 16:9 by themselves. The window then covers the whole screen, but the game draws bars at the top and bottom (the screen with the strip is about 1.55:1). NotchFill cannot change that from outside; look for a community widescreen fix for the game (for example UltrawideIndex or WSGF). Fixes for wider screens often also remove bars on taller ones.

Example: Silent Hill 2 (2024) through Steam with a Wine-based runner. Its fix is an ASI mod loaded by a dsound.dll in the game folder, so Wine must use that file instead of its own:

WINEDLLOVERRIDES="dsound=n,b" "/Applications/NotchFill.app/Contents/MacOS/notchfill-run" %command%

With the fix and NotchFill the game fills the whole screen, strip included.

Install

  1. Download NotchFill-<version>.zip from Releases and unzip it.
  2. Move NotchFill.app to /Applications (the Steam launch option points to the app's location).
  3. The app is not signed with an Apple Developer ID and not notarized, so macOS blocks the first launch. Do one of these:
    • Open it once, then go to System Settings › Privacy & Security and click Open Anyway.
    • Or in Terminal: xattr -dr com.apple.quarantine /Applications/NotchFill.app
  4. NotchFill shows a laptop icon in the menu bar.

Requirements: MacBook with a notch (Apple silicon), macOS 14 or later (tested on macOS 27.2).

Uninstall

Quit NotchFill, delete /Applications/NotchFill.app and ~/Library/Application Support/NotchFill. Restore any game you patched first (scripts/patch-game.py restore). Remove NotchFill's Launch Options in Steam.

Build from source

Needs the Command Line Tools (xcode-select --install). Xcode is not needed.

./scripts/create-dev-cert.sh   # once: local signing identity, keeps permissions between builds
./scripts/build-app.sh
open build/NotchFill.app

create-dev-cert.sh adds a self-signed "NotchFill Dev" identity to your login keychain. Without it the app is signed ad-hoc, and macOS asks for permissions again after each build.

Release: scripts/release.sh 0.1.0 builds build/release/NotchFill-0.1.0.zip (ad-hoc signed, no local paths inside); add --publish to tag v0.1.0 and create the GitHub release.

Diagnostics

open -n build/NotchFill.app --args -mirror-snapshot /tmp/mirror.png -report /tmp/report.txt -quit-after 1

Starts the mirror, moves the pointer behind the notch, saves what the mirror shows.

Licence

MIT, see LICENSE.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages