Repository navigation
Description
Problem
On macOS Spaces, clicking a desktop in a Workspaces widget posts its Switch to Desktop N shortcut. macOS ships those shortcuts off, so on most Macs the first click does nothing. Setup only mentions them in a grey note in Finishing touches, and Settings → General → Access doesn't list them. The person learns about it from a warning triangle on the widget and a line in the bar's menus: "Turn on “Switch to Desktop 1” in System Settings → Keyboard → Keyboard Shortcuts → Mission Control." That line stays until the next Space change or app activation, even after the shortcut is on. System Settings has one checkbox per desktop, so turning them on by hand takes a checkbox for every desktop, and again for each desktop added later.
Seen with StableBar 0.11.1-beta.20261107124053.624 on macOS 27.2 with no window manager running: defaults read com.apple.symbolichotkeys AppleSymbolicHotKeys shows keys 118 and 119 (desktops 1 and 2) with enabled = 0.
Proposal
- When Workspaces uses Spaces, setup's permissions step shows a Desktop shortcuts row beside Accessibility, with Turn On and Open Keyboard Shortcuts….
- Turn On sets macOS's default keys (⌃1–⌃9) for desktops 1–9 in
com.apple.symbolichotkeys, keeps any key the person already chose, and applies the change with/System/Library/PrivateFrameworks/SystemAdministration.framework/Resources/activateSettings -u, so no logout is needed. That tool is undocumented: check it live on macOS 27 first. If it doesn't apply reliably, setup only opens the pane and re-checks while it shows, as it does for Accessibility. - The row doesn't block finishing: the bar works without the shortcuts; only switching from the bar doesn't.
- Settings → General → Access lists the shortcuts while a Workspaces widget uses Spaces, with the same buttons.
- The click error clears once the shortcut is on, not at the next refresh.
Code on main (9494cc7): switchToDesktop(_:) in Sources/StableBar/Spaces.swift reads key 117 + N and throws when it's off; select(_:) in Workspaces.swift stores the error, and only a successful refresh() clears it; SetupPermission in SetupWindow.swift covers Accessibility, Automation and Calendars; permissions(source:) in DataSourceRegistry.swift lists only Accessibility for Spaces.
Possible today
Turn on each Switch to Desktop N in System Settings → Keyboard → Keyboard Shortcuts → Mission Control, as macOS Spaces workspaces describes.
Related
- Show macOS Spaces in workspace widgets without a tiling window manager #84 / feat: show macOS Spaces in workspace widgets without a tiling window manager #194: the Spaces source, which chose the shortcuts for switching.
- Workspaces reads AeroSpace on a fresh setup even when AeroSpace isn't running #435 / fix: fall back to macOS Spaces when no window manager is running #436: Spaces is now the fallback when no window manager runs, so more fresh setups land here.
- Setup hides the menu bar and finishes without the permissions the bar needs #441 / feat: ask for the permissions your bar needs before setup uses them #442: setup's permissions step, which this extends.
- Long errors stretch the bar's menus #448: the long error line that stretches the bar's menus.
Triaged by Claude Code (claude-opus-5-5).
Activity
feat: check the Switch to Desktop shortcuts in setup and Settings
chore(release): 0.13.0 [skip ci]
stablebar-releases commentedon Nov 11, 2026
🎉 This issue has been resolved in version 0.13.0 🎉
The release is available on GitHub release
Your semantic-release bot 📦🚀