Menu-bar status item (accessory activation policy)#6
Open
imaznation wants to merge 1 commit into
Open
Conversation
Kiosk-mode users typically don't want EdgeControl in the Dock or Cmd-Tab — the dashboard window lives on a secondary display and the app is otherwise headless from the main Mac's perspective. Without a menu-bar affordance, though, there's no path to Settings or to quit the app cleanly (the regular menu bar belongs to whatever app is in front, not EdgeControl). Changes: - Switch NSApp activation policy from .regular to .accessory: no Dock icon, no Cmd-Tab entry, no top-of-screen menu bar. - Install an NSStatusItem in the menu bar with a Settings… / Quit menu. Icon is square.grid.2x2.fill at 16pt .semibold — reads instantly as "dashboard" and matches the visual weight of common status items. - Keep the (now unused) buildMainMenu in place so existing Cmd-Q wiring continues to compile; downstream forks that want to switch back to .regular don't have to re-derive the menu structure. Co-Authored-By: Claude Opus 4.7 (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
Kiosk-mode users typically don't want EdgeControl in the Dock or Cmd-Tab — the dashboard window lives on a secondary display and the app is otherwise headless from the main Mac's perspective. Without a menu-bar affordance, though, there's no path to Settings or to quit the app cleanly (the regular menu bar belongs to whatever app is in front, not EdgeControl).
Changes
NSAppactivation policy from.regularto.accessory: no Dock icon, no Cmd-Tab entry, no top-of-screen menu bar.NSStatusItemin the menu bar with a Settings… / Quit menu.square.grid.2x2.fillat 16pt.semibold— reads instantly as "dashboard" and matches the visual weight of common status items.buildMainMenuin place so existing Cmd-Q wiring continues to compile; downstream forks that want to switch back to.regulardon't have to re-derive the menu structure.Compatibility
If you'd prefer to keep the Dock-icon experience as default and make accessory mode a setting toggle, happy to revise — say the word.