Skip to content

Pin one app's menu bar item to the bar #347

Closed

Description

@lgollut

Problem

With the macOS menu bar hidden, and always with Always hide (bar.hideMenuBar), the Menu bar items row is the only way to reach a third-party menu bar app: rest on the row, find the app's icon among all the others, then click it. An app used all day, such as CodexBar for AI usage limits, deserves a place on the bar of its own, the way Control Center has one.

Proposal

  • A menuBarItem widget names one item by its app, as a bundle ID or app name, and, for an app with several items, by the item's Accessibility identifier or title, as Show menu bar extras in the bar #83 proposed for menuExtra:

    { "id": "codexbar", "type": "menuBarItem", "position": "right", "app": "com.steipete.codexbar" }
  • It shows the icon the Menu bar items row shows for that item (menuBarIcon(identifier:app:)), with the item's name as its tooltip; icon or a layout can replace it. It draws no live image of the item, so it needs Accessibility only, like the row.

  • Clicking it opens the item as the row does, through the code openControlCenter() uses (pressInMenuBar), so it works while the menu bar is hidden. A menu StableBar can't draw, such as CodexBar's (Menu bar items drops CodexBar's usage cards and garbles its first row #346), opens as the app's own menu.

  • Other widgets and blocks get the same action, for example as openMenuBarItem, so a script or package widget that draws CodexBar's limits can open CodexBar's menu when clicked. Like open, it runs no command, so packages without commands could use it too.

  • When the app isn't running or has no such item, the widget hides.

  • Add widget, the schema, the Accessibility permission list and docs/widgets.md include it, like Control Center.

Possible today

Partly. The Menu bar items row reaches every item, one step later, and redraws ordinary menus (#346). A script could press the item through System Events with osascript, at the cost of Automation access and without the hidden menu bar handling that pressInMenuBar does.

Related

Triaged by Claude Code via T3 Code (Claude Opus 5.5).

Activity

  1. Seb-GRAF commented on Oct 28, 2026

    @Seb-GRAF
    Collaborator

    Thanks for this one ❤️ #356 covers it: you can now put the items you use, like CodexBar, on the bar next to the Menu bar items grid, from Settings or with a right-click in the row

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions