feat: Notch Overflow — access menu bar icons hidden behind the camera notch#350
Open
mehmetnadir wants to merge 1 commit intodwarvesf:developfrom
Open
feat: Notch Overflow — access menu bar icons hidden behind the camera notch#350mehmetnadir wants to merge 1 commit intodwarvesf:developfrom
mehmetnadir wants to merge 1 commit intodwarvesf:developfrom
Conversation
…otch On Macs with a camera notch, menu bar icons that overflow past the notch become inaccessible. This feature uses the Accessibility API to enumerate all menu bar extras and their positions, then presents hidden items in a dropdown menu. Access methods: - Global hotkey: Cmd+Shift+B (shows menu at cursor position) - Right-click the expand/collapse button → "Show Notch Items" - Right-click the separator → "Show Notch Items" Features: - Detects notch presence via NSScreen.safeAreaInsets (macOS 12+) - Enumerates all menu bar extras via AXUIElement API - Classifies items as hidden (behind notch) or visible by position - Hidden items displayed in orange for visual distinction - Clicking an item triggers AXPress on the original menu extra - Info label in Preferences window explains available shortcuts - Only activates on Macs with a notch; no-op on other models New files: - hidden/Features/NotchOverflow/NotchOverflowController.swift Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
On Macs with a camera notch (MacBook Pro 14"/16", MacBook Air M2+), when there are many menu bar icons, some get pushed behind the notch and become completely inaccessible. This PR adds a Notch Overflow feature that lets users access those hidden icons.
How it works
NSScreen.safeAreaInsets(macOS 12+) to detect if the Mac has a notchAXUIElement)AXPresson the original menu bar extraAccess methods
Screenshots
The overflow menu classifies items:
Technical details
hidden/Features/NotchOverflow/NotchOverflowController.swiftNotchOverflowController.hasNotchreturns false)Test plan
🤖 Generated with Claude Code