Skip to content

feat: show macOS Spaces in workspace widgets without a tiling window manager - #194

Merged
Seb-GRAF merged 1 commit into
mainfrom
feat/macos-spaces-workspaces
Oct 22, 2026
Merged

Seb-GRAF merged 1 commit into
mainfrom
feat/macos-spaces-workspaces

Conversation

@Seb-GRAF

Copy link
Copy Markdown
Collaborator

Problem

Workspace widgets need AeroSpace or yabai, so people without a tiling window manager get no workspace list. Fixes #84.

Changes

  • New spaces workspace source ("workspaceSource": "spaces", or Spaces in Settings → General → Workspaces). It lists each display's Mission Control desktops and their apps, and marks the visible and active ones.
  • Listing Spaces and their windows uses private CGS functions (CGSCopyManagedDisplaySpaces, CGSCopySpacesForWindows, CGSGetActiveSpace). As decided on the issue, this is allowed only in this opt-in source; the README's "no private window-server API" line now names the exception.
  • Desktops are numbered across displays like Mission Control. Fullscreen spaces have no desktop number and are left out.
  • The store refreshes on active Space changes and on app launch, quit and activation.
  • Clicking a desktop posts the user's "Switch to Desktop N" shortcut, read from com.apple.symbolichotkeys. If the shortcut is off or Accessibility access is missing, the widget shows an error naming the fix. Clicking a window title brings its app to the front.
  • Schema enum, Settings segment, Settings search keywords, add-widget description and docs (widgets, configuration, command line, layout) updated.

Testing

  • swift test --filter "WidgetTests|WidgetAddCatalogTests|workspace|Workspace" plus schemaListsTheSamePropertiesAsTheDecoders: all pass. New spacesSnapshotNumbersDesktopsAcrossDisplays covers numbering across displays, skipped fullscreen spaces, unmapped displays, window layers and non-regular apps.
  • A one-off run of the live reader on a Mac with two desktops listed both with the right apps and window titles.
  • Not checked: clicking to switch Spaces in the running app, and the "Displays have separate Spaces" off case. No screenshots of the new Spaces segment in Settings.

Merging

Rebase merge or merge commit; it's one feat commit.

Claude Opus 5.5 via Claude Code (T3 Code)

@Seb-GRAF
Seb-GRAF merged commit fbc5746 into main Oct 22, 2026
7 checks passed
@Seb-GRAF
Seb-GRAF deleted the feat/macos-spaces-workspaces branch October 22, 2026 10:12
@stablebar-releases

Copy link
Copy Markdown

🎉 This PR is included in version 0.6.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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Show macOS Spaces in workspace widgets without a tiling window manager

1 participant