Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

AeroSpace

AeroSpace controls workspaces and puts your windows in tile or accordion layouts, in the i3 style.

AeroSpace needs Accessibility access the first time it runs:

  1. Open System Settings > Privacy & Security > Accessibility.
  2. Enable AeroSpace.
  3. Run open -a AeroSpace.

After that, AeroSpace starts automatically when you sign in.

Keys

The configuration file has two modes: the main mode and the service mode. The main keys use Option (alt), and some shortcuts also have Emacs-style aliases.

Main mode: Focus

KeysAction
alt-h, alt-j, alt-k, alt-lFocus the left, down, up, or right window
alt-ctrl-b, alt-ctrl-n, alt-ctrl-p, alt-ctrl-fFocus the left, down, up, or right window (Emacs style)

Main mode: Move

KeysAction
alt-shift-h, alt-shift-j, alt-shift-k, alt-shift-lMove the window left, down, up, or right
alt-ctrl-shift-b, alt-ctrl-shift-n, alt-ctrl-shift-p, alt-ctrl-shift-fMove the window left, down, up, or right (Emacs style)

Main mode: Workspaces

KeysAction
alt-1 to alt-9Go to workspace 1 to 9
alt-shift-1 to alt-shift-9Move the window to workspace 1 to 9
alt-tabReturn to the previous workspace
alt-shift-tabMove the workspace to the next monitor

Main mode: Layouts

KeysAction
alt-slashUse the tiled layout
alt-commaUse the accordion layout
alt-backslashChange the window to floating or tiled
alt-fUse the full screen
alt-enterOpen a new WezTerm window

Main mode: Resize

KeysAction
alt-minusMake the window smaller
alt-equalMake the window larger

Main mode: Service mode

KeysAction
alt-shift-semicolonEnter the service mode

Service mode

Each service mode key does one task, and then AeroSpace returns to the main mode.

KeysAction
escReload the configuration
rFlatten the workspace tree
fChange the layout to floating or tiled
backspaceClose all windows except the current window
alt-shift-h, alt-shift-j, alt-shift-k, alt-shift-lJoin the left, down, up, or right window
alt-ctrl-shift-b, alt-ctrl-shift-n, alt-ctrl-shift-p, alt-ctrl-shift-fJoin the left, down, up, or right window (Emacs style)

Configuration

Edit ~/.config/aerospace/aerospace.toml. teeup copies this file one time, and after that you can change it. If you have ~/.aerospace.toml, teeup keeps it and does not install its own file, because AeroSpace does not run if it finds two configuration files. To reload the configuration, press esc in the service mode or run aerospace reload-config.

If you have more than one display, you can assign workspaces to specific monitors in the configuration file. For more than the teeup configuration, read AeroSpace’s guide.

Troubleshooting

Run teeup doctor to check that AeroSpace runs and its configuration is correct. Read the doctor page for more information.

Removing it

Run teeup remove aerospace. If you do not want to install AeroSpace, use TEEUP_SKIP=aerospace.