Skip to content

Let the user choose Dock icon vs. menu bar vs. background-only presence #82

Description

@trsdn

Problem

OpenSwitchr always runs as a menu-bar-only accessory app (LSUIElement): no Dock icon,
ever, and no way to turn one on. Some people would rather have a Dock icon
(easier to find, shows up in Cmd-Tab and the Dock, no permanent menu bar
clutter) instead of, or in addition to, the menu bar item.

Proposal

Add a "Presence" (or similar) setting with a small number of modes, e.g.:

  • Menu bar only (today's fixed behavior)
  • Dock icon only — no status item; the window/Settings reachable from the
    Dock icon's menu
  • Dock and menu bar — both, for people who want either path
  • Background only — no persistent UI element; relaunching the app while
    it's running brings up its window

Needs NSApplication.setActivationPolicy(...) switched at runtime
(.regular / .accessory) plus a reopen handler for the "background only"
case, and the choice needs to survive relaunch (stored the way other startup
settings already are).

Constraints to check before implementing

  • Anything that assumes there is no Dock icon / no .regular activation
    (window activation, Cmd-Tab visibility assumptions, single-instance
    handling) needs review, not just a policy flip.
  • Losing the menu bar icon must not lose the only way to reach the app's
    functionality.

Related

Same request filed across the menu-bar apps in this account:
trsdn/OpenPromptr trsdn/OpenFreshr trsdn/PtionsPlus trsdn/OpenWritr trsdn/OpenZombr trsdn/OpenZonr

🤖 Generated with Claude Code

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions