Skip to content

About

See every menu bar icon — even the ones hidden behind the notch

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

📡 MenuBarOverflow

See every menu bar icon — even the ones hidden behind the notch

Swift macOS SwiftUI

Features · Getting Started · Building · Deploy · Tech Stack


✨ Features

  • Multi-Row Grid Panel — Displays all menu bar items in a scrollable popover grid, so nothing is hidden
  • Notch Detection — Automatically identifies items obscured by the MacBook notch/Dynamic Island and highlights them with an orange border
  • Click Forwarding — Click any item in the grid to open its real menu, using Accessibility API (AXPress) with CGEvent fallback
  • Live Screenshots — Captures each menu bar item's actual icon via CGWindowList for accurate visual representation
  • Hidden Only Filter — Toggle to show only the items hidden behind the notch
  • Launch at Login — Optional auto-start via SMAppService (toggle in the panel's options menu)
  • Permission Onboarding — Guides users through granting Accessibility and Screen Recording permissions on first launch
  • Menu Bar App — Runs quietly in the menu bar with no dock icon clutter (LSUIElement)

🚀 Getting Started

Prerequisites

  • macOS 13.0 (Ventura) or later
  • Accessibility permissions (for click forwarding)
  • Screen Recording permissions (for capturing menu bar item icons)

Installation

# Clone the repository
git clone https://github.com/markksantos/MenuBarOverflow.git
cd MenuBarOverflow

# Open in Xcode
open MenuBarOverflow.xcodeproj

🔨 Building

In Xcode

  1. Open MenuBarOverflow.xcodeproj in Xcode
  2. Select the MenuBarOverflow scheme
  3. Build and run (Cmd+R)
  4. Grant Accessibility and Screen Recording permissions when prompted

From the command line

# Build the app (unsigned, ad-hoc)
xcodebuild build \
  -project MenuBarOverflow.xcodeproj \
  -scheme MenuBarOverflow \
  -configuration Release \
  -destination 'platform=macOS'

# Run the unit tests
xcodebuild test \
  -project MenuBarOverflow.xcodeproj \
  -scheme MenuBarOverflow \
  -destination 'platform=macOS'

Packaging a distributable build

# Produces build/MenuBarOverflow.app and build/MenuBarOverflow.zip (universal binary)
./scripts/build-release.sh

Regenerating the app icon

The icon is generated from scripts/appicon.svg. To re-render every size:

brew install librsvg   # provides rsvg-convert
./scripts/generate-appicon.sh

📦 How to Deploy

The app builds and runs locally without an Apple Developer account, but macOS Gatekeeper will block an unsigned build on other Macs. To distribute publicly you need to sign and notarize.

  1. Sign with a Developer ID Application certificate (requires a paid Apple Developer account):
    DEVELOPER_ID="Developer ID Application: <Your Name> (TEAMID)" \
      ./scripts/build-release.sh
  2. Notarize the zip with notarytool (store credentials once via xcrun notarytool store-credentials):
    xcrun notarytool submit build/MenuBarOverflow.zip \
      --keychain-profile "MBO_NOTARY" --wait
  3. Staple the ticket so it works offline, then re-zip for distribution:
    xcrun stapler staple build/MenuBarOverflow.app
    ditto -c -k --sequesterRsrc --keepParent \
      build/MenuBarOverflow.app build/MenuBarOverflow.zip
  4. Publish the stapled MenuBarOverflow.zip (GitHub Release) or wrap it in a .dmg. For the Mac App Store, the sandbox must be enabled and a different distribution flow used — note that this app currently disables the sandbox (app-sandbox = false) because it requires Screen Recording + Accessibility, which are difficult to ship through MAS; direct download is recommended.

CI runs xcodebuild test on every push/PR via .github/workflows/ci.yml.

🛠️ Tech Stack

Category Technology
Language Swift 5.9
UI Framework SwiftUI
Platform APIs CoreGraphics, Accessibility API, CGWindowList
Build System Xcode
Min Target macOS 13.0 (Ventura)

📁 Project Structure

MenuBarOverflow/
├── App/
│   ├── MenuBarOverflowApp.swift      # App entry point (LSUIElement)
│   ├── AppDelegate.swift             # NSStatusItem + NSPopover setup
│   └── EventMonitor.swift            # Global click monitor for dismissal
├── Models/
│   ├── MenuBarItem.swift             # Data model for discovered items
│   └── AppState.swift                # Central state management
├── Services/
│   ├── MenuBarScanner.swift          # CGWindowList scan + AX matching
│   ├── ClickForwarder.swift          # AXPress + CGEvent click forwarding
│   ├── PermissionService.swift       # Accessibility + Screen Recording checks
│   ├── NotchDetector.swift           # Screen geometry / notch detection
│   └── LaunchAtLogin.swift           # SMAppService login-item registration
├── Views/
│   ├── OverflowPanelView.swift       # Main popover content with grid
│   ├── MenuBarItemView.swift         # Single item cell (icon + label)
│   └── PermissionPromptView.swift    # Onboarding for permissions
└── Resources/
    └── Assets.xcassets/              # AppIcon (generated from scripts/appicon.svg)

MenuBarOverflowTests/                 # XCTest unit tests (notch geometry, state)
scripts/                             # Icon + release packaging scripts
.github/workflows/ci.yml             # Build + test CI

📄 License

MIT License © 2025 Mark Santos

About

See every menu bar icon — even the ones hidden behind the notch

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages