Skip to content
anomalycoPublic

About

A macOS tiling window manager with stable logical windows

Topics

Resources

Contributing

Security policy

Stars

632 stars

Watchers

1 watching

Forks

Repository files navigation

Spaceman

Spaceman is an experimental macOS tiling window manager built around stable logical windows. A native window, including a selected Ghostty native tab, can change physical Accessibility identity without creating a new tile. Spaceman keeps the logical slot and replaces its physical binding when the evidence is unambiguous.

Website · Download for Apple silicon

Warning

Disable AeroSpace, yabai, Amethyst, and every other window manager before first opening Spaceman or installing it from source. Two managers can repeatedly move the same windows. Keep the parked window state until Spaceman has successfully paused or quit and restored every window.

Spaceman currently:

  • starts automatic tiling when Accessibility permission and its global hotkeys are available;
  • provides ten default numbered workspaces plus opt-in named workspaces A-Z, with 1-5 on the main display and 6-10 on the secondary display by default;
  • assigns workspaces to main, secondary, a display UUID, or an exact display name, falling back to the main display when a preferred display disconnects;
  • persists active workspaces, nested split layouts, tile order and weights, and parked-window recovery metadata across Spaceman restarts, and remembers each application's window placements by bundle identifier so reboots and startup recovery return windows to their workspaces;
  • journals window arrangements and model/screen disagreements locally, summarized by spaceman doctor and, with the [labs] activity switch on, in Settings (Activity);
  • shows a non-activating Workspace HUD capsule on each display on workspace switches, cross-workspace moves, and layout toggles ([settings] hud = true): a row of that display's workspaces, drawn as numbers and app icons by default or (hud_style = "layouts") as their layouts with app icons, with a marker that travels to the one you are on. It sits above the bottom edge by default or below the top one (hud_position = "top"), follows quick switches without restarting, and honors Reduce Motion. workspace_order sets the order the HUD, menu bar menu, and three-finger swipes list workspaces in, such as the keyboard row Q W E R T Y;
  • can register its signed app bundle with macOS to launch automatically at login;
  • supports directional focus and movement across displays, drag-to-reorder/nest, mouse and keyboard resizing, balancing, and a workspace-wide Fullscreen Layout;
  • sends a browser, Finder, or terminal tab to another workspace as its own window (spaceman ctl move-tab 2) through the app's own Move Tab to New Window;
  • keeps movable non-resizable and rule-floated windows with their logical workspace without tiling or resizing them, floats small utilities such as Stickies and Calculator by default, and can pin a floating window on every workspace of its display (action = "pin" or spaceman ctl pin);
  • exposes a local CLI over a user-only Unix socket.

Spaceman uses Accessibility APIs to observe, focus, move, and resize eligible windows. It requires no SIP change. Read Security and privacy, Compatibility, and Limitations before trying it.

Install Preview

The current preview is a Developer ID-signed, notarized arm64 build for Apple silicon Macs. It remains experimental; read Known limitations before installing it.

  1. Disable every other window manager. For AeroSpace: aerospace enable off.

  2. Download, install and open the latest build:

    curl -fL https://anoma.ly/spaceman/download/macos-arm64 -o /tmp/Spaceman.zip \
      && ditto -x -k /tmp/Spaceman.zip /Applications && open /Applications/Spaceman.app
  3. Follow the setup tour: grant Accessibility access, then press Arrange & start.

  4. Optionally link the bundled CLI: mkdir -p "$HOME/.local/bin" && ln -sf "/Applications/Spaceman.app/Contents/MacOS/spaceman" "$HOME/.local/bin/spaceman".

To check the download first, get Spaceman for Apple silicon and its SHA-256 checksum, run shasum -a 256 -c Spaceman.zip.sha256, then unzip it and move Spaceman.app to /Applications.

Spaceman updates itself from Anomaly's release service: when an update is ready, choose Install & restart in Settings or the menu's install item, or just quit and it installs for the next launch. Spaceman restores every window first. Builds after 0.3.0 are signed by Anomaly with the bundle ID anomaly.spaceman, so macOS asks for Accessibility access once more after that update; your config, workspaces and parked-window recovery carry over. If a manual replacement is necessary, pause and quit the running version and confirm that every parked window has returned before replacing its bundle.

Install From Source

Source builds are distinct from the notarized preview artifact and require your own Developer ID Application signing identity.

Requirements: macOS, Xcode command-line tools, Rust 1.100.0, and a Developer ID Application identity.

From an existing repository checkout, first disable every other window manager, then run:

./scripts/install-app.sh

Set SPACEMAN_CODESIGN_IDENTITY if auto-detection does not choose the desired identity. The script builds and signs target/Spaceman.app, installs it at /Applications/Spaceman.app, links the CLI to ~/.local/bin/spaceman, and opens the app.

Ensure ~/.local/bin is on PATH. For zsh:

printf '\nexport PATH="$HOME/.local/bin:$PATH"\n' >> "$HOME/.zshrc"
exec zsh

Artifact users do not need a Developer ID identity. See Releasing for the maintainer workflow.

First Open

  1. Disable every other window manager. For AeroSpace: aerospace enable off.
  2. Open Spaceman: open "/Applications/Spaceman.app".
  3. On a fresh install, Spaceman opens its four-step setup tour when Accessibility access is missing. Choose Allow and grant Spaceman access in System Settings > Privacy & Security (the Accessibility list, named System & App Protection Override on macOS 27.3 and later). If Stage Manager or macOS edge tiling is on, or another window manager is running, that step lists it with Turn off or Quit.
  4. Your workspaces shows where the windows open now would go: browsers on workspace 1, editors and terminals on 2, chat and mail on 3, documents on 4, media on 5, at most two tiles a workspace on a laptop display, with small utilities left floating. Click or drag an app's icon to move it, then press Arrange & start, or Skip to leave every window where it is.
  5. Try it is a miniature desktop that teaches four shortcuts, one prompt at a time: ⌥2 and ⌥1 switch workspaces, ⌥⇧Space floats a window and tiles it again, ⌥⇧F turns Fullscreen Layout on and off, and ⌥1 again brings the window behind forward. Only the keyboard moves it, and while the setup window has the keyboard those presses move the miniature and none of your windows. Modifier under the prompt changes the modifier every shortcut holds, Launch at login is here too, and Undo & restore pauses tiling and puts every window back where it was.
  6. Confirm operation with spaceman ctl status.

Automatic tiling starts with Arrange & start. A fresh install holds it until then, so granting Accessibility never rearranges your windows behind the setup window; Skip, or closing the tour once Accessibility is granted, leaves Spaceman paused until you choose Resume Tiling or it next launches. The arrangement moves the windows that are open and writes no route rule. Small utilities such as Calculator and Stickies float by default with no rule; it saves a float rule only for another app you float on the board, and a tile rule for a utility you tile. Without Accessibility permission, the menu reports the permission error and tiling remains paused. While tiling, the menu lists each display's workspaces (the visible one checked, plus any holding windows, with their apps' icons); choosing one switches to it. The menu actions are Setup Tour… (while Accessibility is missing), Pause Tiling (or Resume Tiling while paused), Workspace HUD, Launch at Login, Settings... (⌘,), Check for Updates..., and Quit Spaceman (⌘Q). Settings includes General, Layout (Dwindle or Columns new-window tiling, window gaps, screen-edge padding, and a single-window width for wide displays, over a live preview), Rules, Workspaces, Shortcuts, with [labs] activity = true, Activity (title-free arrangement diagnostics and process vitals), and Labs (a switch for each experimental feature, all off by default). If macOS requires approval, the login item action opens System Settings > General > Login Items & Extensions.

Everyday Use

Core controls:

Keys Action
Option+1 ... Option+9, Option+0 Switch to workspace 1 ... 10
Option+Shift+1 ... Option+Shift+0 Move the focused window to workspace 1 ... 10
Option+A ... Option+Z Switch to a configured named workspace
Option+Shift+A ... Option+Shift+Z Move the focused window to a configured named workspace
Option+Tab Focus the workspace focused before this one, on any display
Option+Shift+Tab Move the focused workspace to the next display
Option-backtick Focus the next window in the workspace, tiled or floating
Option-Shift-backtick Focus the previous window in the workspace
Option+H/J/K/L Focus left/down/up/right
Option+Shift+H/J/K/L Move the focused tile left/down/up/right
Option+/ Toggle the active layout's root split axis
Option+-, Option+= Shrink/grow the focused tile by 50 pixels
Option+Shift+F Toggle Fullscreen Layout without native fullscreen
Option+Shift+Space Float the focused window above the tiles, or tile it again
Three-finger swipe left/right Next/previous occupied workspace on the display under the pointer

The swipe shares three fingers with macOS's "Swipe between full-screen applications"; set that to four fingers or off in Trackpad settings so only one of them moves, or keep it: turn on Swipe switch in Settings › Labs, then turn off Swipe to switch workspace in Settings › Shortcuts. If you use Accessibility's three-finger drag, macOS moves its own swipes to four fingers; turn on Four-finger swipe in Settings › Labs to move Spaceman's swipe to four fingers too. Like macOS Spaces, the swipe follows Natural scrolling: with it off, swiping right goes to the next workspace.

Every shortcut can be rebound in config.toml's [shortcuts] table, for example to match a Linux tiling setup; see Configuration › Shortcuts.

Character shortcuts follow the active macOS keyboard layout. Workspace digits remain the physical ANSI number row, and Tab remains physical Tab. See Controls for drag, resize, balance, CLI, and socket behavior.

By default (settings.layout = "dwindle"), each new window splits the focused (or most recently added) tile along its longer side—side by side then alternating vertically on landscape displays, and top-to-bottom first on portrait monitors. Set settings.layout = "columns" (or pick Columns in Settings › Layout) to add new windows as equal siblings instead. When an app closes its last window, neighboring tiles can expand as soon as the app confirms the close. When apps refuse to fit side by side, Spaceman can temporarily stack adjacent tiles and restore the requested split when space allows.

Commands and completed gestures wait in arrival order when the worker is busy; repeated resize or focus commands are not collapsed into one. Workspace switches keep the outgoing windows visible if incoming parked windows cannot finish restoring. Parking targets are checked against every attached display, including middle displays in three-display arrangements.

spaceman ctl status
spaceman ctl switch 2
spaceman ctl move 7
spaceman ctl move-tab 2
spaceman ctl layout
spaceman ctl float
spaceman ctl pin
spaceman ctl balance
spaceman ctl pause
spaceman ctl resume

Configure

Spaceman reads ~/Library/Application Support/Spaceman/config.toml at startup and reloads rule, display, and HUD (on/off, style, and screen edge) edits automatically when the file changes. See the exact current schema and config.example.toml in Configuration.

spaceman config-check "$HOME/Library/Application Support/Spaceman/config.toml"
spaceman displays

Recover Or Remove

Use spaceman ctl pause or spaceman ctl quit and wait for spaceman ctl status or process exit to confirm that restoration completed before removing the app or state. Do not delete parked-windows.json as an early troubleshooting step: it records where off-screen parked windows must return.

After a crash, recorded parked windows missing from otherwise valid workspace state are restored before automatic reconciliation resumes. Recovery metadata stays intact until restoration and its durable removal succeed.

Follow Recovery for stuck or crashed processes and safe uninstall instructions.

Documentation

Status

Public experimental preview. The arm64 artifact is signed, notarized, stapled, checksummed, and served through Anomaly's release service, which the app's own updater checks. Broad release readiness is not proven: minimum-OS runtime validation, clean-machine install/upgrade/recovery/uninstall qualification, wider architecture support, and a concise product demo remain outstanding.

Contributing

We don't take pull requests. Open an issue describing the bug or idea, and our agents usually turn it around fast.

License

MIT

About

A macOS tiling window manager with stable logical windows

Topics

Resources

Contributing

Security policy

Stars

632 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages