Skip to content

Show each window in workspace widgets, with its title, and focus it on click #73

Closed

Description

@Seb-GRAF

Problem

Workspace widgets draw one icon per app in each workspace. You can't see a workspace's windows, tell two windows of one app apart, or focus a particular window: clicking switches to the workspace.

Proposal

  • A workspace.windows option draws one item per window instead of one per app: its app icon or glyph, and with workspace.titleLength its title, shortened to that many characters.
  • Clicking a window focuses it (aerospace focus --window-id ID, yabai -m window --focus ID). Clicking the rest of the cell still switches workspace.
  • The data is at hand. The AeroSpace query at Sources/StableBar/Workspaces.swift:210 asks for %{workspace} %{app-name} %{app-bundle-id}; adding %{window-id} and %{window-title} gives the rest. yabai's window query returns id and title.
  • Titles refresh with the events StableBar already receives; yabai users can add the window_title_changed signal.

Possible today

Partly. A script widget can list windows with aerospace list-windows --workspace focused --format '%{window-id}|%{app-name}|%{window-title}' and show them in a popup list whose rows run aerospace focus --window-id through onClickField. The workspace widget itself can't.

Related

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

Activity

  1. added
    enhancement
    on Oct 19, 2026
  2. stablebar-releases commented on Oct 21, 2026

    @stablebar-releases

    🎉 This issue has been resolved in version 0.5.0 🎉

    The release is available on GitHub release

    Your semantic-release bot 📦🚀

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

    enhancementreleased

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions