Skip to content

About

A macOS menu-bar app that shows your current Mission Control space number and lets you switch spaces by clicking.

Topics

Resources

Stars

8 stars

Watchers

0 watching

Forks

Repository files navigation

ActiveSpace

A macOS menu-bar app that shows which Mission Control space you are on, and lets you jump to any other one by clicking it. Optionally replaces command-Tab with a space-aware switcher that only shows apps with windows on the current space.

What it does

  • Numbered bubble in the menu bar showing the current space; updates live whether you switch with ActiveSpace, Mission Control, the keyboard or a trackpad gesture.
  • Click to switch. With two spaces a left-click toggles between them; with three or more it opens a popover with numbered buttons; with one space the icon is just an indicator.
  • Optional grid layout. Tell ActiveSpace your conceptual row width — say, 4 if you keep 8 spaces and think of them as 4×2 — and the popover reflows into rows of that width. Two extra hotkeys become available which navigate up/down a row, with optional column-wrap, where navigating down from the bottom of a column lands at the top of the same column and vice versa. Set row width to 0 to keep the original linear strip.
  • Optional space-aware command-Tab Switcher (off by default). When on, command tab shows only apps with windows on the current space, including minimised windows and windows of hidden apps. Cycle with tab or arrows, reverse with shift tab, commit by releasing command or pressing return, cancel with esc. When off, native command tab is completely untouched.
  • Follow app across spaces. Bind a shortcut to make the frontmost app's windows appear on every Mission Control space, the same effect as the Dock's right-click Options → Assign To → All Desktops. Toggle the same shortcut again and the app returns to the space it was on when you first followed it.
  • Focus follows you. Arriving on a space brings forward an app that actually lives there, rather than leaving you on a desk with nothing selected.
  • Name your spaces. Give any space a name, and the popover shows it the moment you hover a bubble. Two more places to show names are there if you want them, both off by default: the menu bar, and Mission Control itself.

Space names

Right-click a bubble in the popover and choose Rename Space…, or type names into the Space Names section of Settings. Clear a name to remove it.

A name belongs to the space, not to its position. macOS sometimes reorders spaces on its own, after a screensaver for example, and the name moves with its space when that happens. Names survive restarts. If a space disappears, after a display change for instance, its name is kept and listed in Settings as not present, in case the same space comes back.

Once any space has a name, the popover gains a line under the bubbles. It shows the space under the pointer straight away, and the current space when the pointer is elsewhere. Until then the popover is exactly as it was.

Two optional places to show names, each a switch in Settings:

  • Menu bar. The bubble reads 3 · Mail in place of 3. A space without a name still shows its number alone. Long names are cut short with an ellipsis.
  • Mission Control. Each name is drawn over the Desktop 1, Desktop 2 caption under its thumbnail, including the copy of the bar on a second display. macOS offers no way to rename those captions, so ActiveSpace places a small label over each one while Mission Control is open. It checks for Mission Control four times a second while the switch is on, at a cost of about 0.1% of one CPU core, and not at all while it is off.

Two defaults keys fine-tune the display:

# Widest a menu-bar name may be, in points (default 160)
defaults write cc.jorviksoftware.ActiveSpace ActiveSpace.menuBarNameMaxWidth -float 200

# How often to check for Mission Control, in milliseconds (default 250)
defaults write cc.jorviksoftware.ActiveSpace ActiveSpace.missionControlPollMs -int 250

How switching works

ActiveSpace does not switch spaces itself. It sends the keyboard shortcut macOS already has for the space you picked, and macOS does the rest.

That means one mechanism on every display configuration, no private window-server calls, and nothing to break the next time Apple changes how Mission Control works. It also means the animation is Apple's, because it is Apple doing the switching.

The shortcuts live in System Settings → Keyboard → Keyboard Shortcuts → Mission Control, as Switch to Desktop 1, Switch to Desktop 2 and so on. They are switched off by default on a new Mac. ActiveSpace's Settings pane lists one row per space showing the key macOS has for it, or telling you plainly that it has none, and a single button turns on every missing one for you. Where macOS already knows a key, that key is kept; where it has none, control plus the space number is used, which is macOS's own default.

If a space has no shortcut, the popover cannot reach it. The Settings pane shows which spaces are in that state so you can fix them; the popover itself gives no warning at the point of clicking.

Earlier versions did switch spaces themselves, using synthetic trackpad gestures and private CoreGraphics calls, with an invisible virtual display to make that work on a single-monitor Mac. macOS 27 ended all of it, and deferring to macOS turned out to be simpler, more robust and about a thousand lines lighter.

Installation

Two formats on every release, both signed and notarised, pick whichever suits:

  • Installer (.pkg) — recommended for first-time installs. Double-click to run; macOS Installer places the app in /Applications without quarantine or App Translocation.
  • Download (.zip) — unzip and drag ActiveSpace.app to your Applications folder.

Or install it with Homebrew:

brew install --cask perpetualbeta/jorvik/activespace

Launch ActiveSpace from /Applications and grant Accessibility when prompted.

Settings

Right-click the menu-bar bubble and choose Settings…:

  • Space Names — a name for each space, the switches for showing names in the menu bar and in Mission Control, and any names kept for spaces that are not present.
  • Switcher — toggle the space-aware command-Tab replacement.
  • Grid — optional row width for the popover layout and the up/down navigation hotkeys.
  • Navigation — Wrap around at the ends (on by default). Turn it off for a hard stop at the top and bottom of a column.
  • Switching Spaces: Direct Select — one row per space, showing the Mission Control shortcut macOS has for it or noting that it has none, with a button that sets up the missing ones.
  • Switching Spaces: Carousel — the two shortcuts that step one space left or right. ActiveSpace does not send these; they are listed because they are how you move by hand.
  • Below both, a button that opens the Mission Control pane if you would rather set these up yourself.
  • ActiveSpace Shortcuts — Follow App Across Spaces, plus Navigate Up and Navigate Down when grid layout is on. These are ActiveSpace's own, because macOS has no equivalent. Each can be cleared as well as changed.
  • Permissions — live status of Accessibility and Input Monitoring with grant buttons.
  • Launch at Login — start automatically.

Auto-updates are handled by Sparkle. Use the Check for Updates… entry in the right-click menu to check on demand.

Permissions

  • Accessibility — always required. ActiveSpace switches spaces by sending a keystroke, and macOS only lets a trusted app do that. macOS prompts on first launch. Names in Mission Control use the same permission to find where each thumbnail is, so they need nothing extra.
  • Input Monitoring — only required if you use the keyboard. It exists for the shortcut listener, which is created only when the space-aware Switcher is on, or Follow App Across Spaces is bound, or grid layout is on with an up/down hotkey bound. Turn all of those off and ActiveSpace never asks for it.

ActiveSpace no longer competes with macOS's own Mission Control shortcuts. It uses them, so there is nothing to disable.

Architecture

File Purpose
ActiveSpaceApp.swift @main entry; wires AppDelegate
AppDelegate.swift Status item, event tap, click routing, popover, settings
SpaceObserver.swift @Published current/total space counts; CGS polling + notifications
SpaceSwitcher.swift Works out which space to move to; MissionControlShortcuts reads, sends and enables macOS's own shortcuts
WindowFollow.swift Per-app "follow across spaces" toggle + toast HUD
MenuBarIcon.swift Numbered bubble rendering, with the space name when that is switched on
SpaceSelectorView.swift SwiftUI popover (3+ spaces), with the hover name line
SpaceNames.swift Space names, keyed by space UUID, and the two display switches
MissionControlLabels.swift Name labels over Mission Control's captions, read from WindowManager's Accessibility tree
SwitcherController.swift State machine for the space-aware command-Tab switcher
SwitcherHUDWindow.swift Borderless HUD with proportional icon scaling
SwitcherAppResolver.swift Per-window space membership via SLSCopySpacesForWindows; pre-warmed app-icon cache
SwitcherAppStack.swift Per-space MRU bundle-ID stack
ReconfigurationObserver.swift Six-source observer for display/space/screen-lock/poll events
DriftMonitor.swift Classifies reconfiguration events; diagnostic logging
ActiveSpaceFingerprint.swift Display + Spaces snapshot used for drift diffing
SpacesPlist.swift Reads com.apple.spaces.plist for visual-order ground truth
Logging.swift aslog(...) to ~/Library/Logs/ActiveSpace/debug.log, gated on ActiveSpace.debugLogging
CGSPrivate.swift Swift bindings for private CoreGraphics, SkyLight and Accessibility APIs
tools/spaceprobe/ Command-line probe used to measure which switching mechanisms actually work on a given macOS

Building

git clone https://github.com/PerpetualBeta/ActiveSpace.git
open ActiveSpace/ActiveSpace.xcodeproj
# command B to build, command R to run

Or from the command line:

xcodebuild -project ActiveSpace.xcodeproj \
  -scheme ActiveSpace \
  -configuration Release \
  build

Requirements

  • macOS 14.0 (Sonoma) or later
  • Universal binary (Apple Silicon and Intel)
  • Accessibility permission, and Input Monitoring only if you use the keyboard features

Diagnostic logging

ActiveSpace ships with disk logging off. Enable it for support or self-debugging with:

defaults write cc.jorviksoftware.ActiveSpace ActiveSpace.debugLogging -bool YES

Then quit and relaunch. The log lives at ~/Library/Logs/ActiveSpace/debug.log. It is kept across launches and rolls over to debug.log.1 once it reaches 4 MB, so it never takes more than about 8 MB. Disable again with -bool NO (or defaults delete) plus another relaunch.


ActiveSpace is part of Jorvik Software. If you find it useful, consider buying me a coffee.

About

A macOS menu-bar app that shows your current Mission Control space number and lets you switch spaces by clicking.

Topics

Resources

Stars

8 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages