xiaohongshu
xiaohongshu
aerospace
Configure and manage AeroSpace tiling window manager for macOS. Use when working with window layouts, tiling configurations, workspace management, monitor assignments, or AeroSpace keybindings. Keywords: aerospace, tiling, workspaces, window manager, i3-like.
Full skill instructions
AeroSpace is an i3-like tiling window manager for macOS. It uses a tree-based tiling paradigm where windows are organized in nested containers with different layouts and orientations.
~/.config/aerospace/aerospace.toml~/.aerospace.toml/Applications/AeroSpace.app/Contents/Resources/default-config.tomlInternal monitor (built-in) - workspaces 1-5:
External monitor - workspaces 6-9:
[workspace-to-monitor-force-assignment]
# Internal monitor
1 = 'built-in'
2 = 'built-in'
3 = 'built-in'
4 = 'built-in'
5 = 'built-in'
# External monitor (sequence number 2)
6 = 2
7 = 2
8 = 2
9 = 2
[gaps]
inner.horizontal = 8
inner.vertical = 8
outer.left = 8
outer.bottom = 8
outer.top = 8
outer.right = 8
alt-h/j/k/l - Focus left/down/up/right window (vim-style)alt-shift-h/j/k/l - Move window left/down/up/rightalt-1 through alt-9 - Switch to workspace 1-9alt-shift-1 through alt-9 - Move window to workspace and followalt-, - Focus left monitoralt-. - Focus right monitoralt-shift-, - Move workspace to left monitoralt-shift-. - Move workspace to right monitoralt-shift-space - Toggle floating/tilingalt-f - Toggle fullscreenalt-shift-v - Create vertical split (for three-column layout)alt-shift-o - Toggle horizontal/vertical orientationalt-r - Enter resize mode
h - Decrease widthj - Increase heightk - Decrease heightl - Increase widthenter or esc - Exit resize modealt-shift-r - Reload configalt-shift-q - Close windowEvery workspace contains a tree where:
Two automatic normalizations keep layouts sensible:
alt-shift-v to create vertical splitResult: [Window 1] [Window 2 over Window 3]
aerospace [-h|--help] [-v|--version] <subcommand> [<args>...]
list-monitors - List monitors
aerospace list-monitors
aerospace list-monitors --focused
aerospace list-monitors --format '%{monitor-id} | %{monitor-name}'
aerospace list-monitors --json
aerospace list-monitors --count
list-workspaces - List workspaces
aerospace list-workspaces --all
aerospace list-workspaces --focused
aerospace list-workspaces --monitor focused
aerospace list-workspaces --monitor all --visible --empty no
aerospace list-workspaces --format '%{workspace}' --json
list-windows - List windows
aerospace list-windows --all
aerospace list-windows --focused
aerospace list-windows --workspace focused
aerospace list-windows --workspace 1
aerospace list-windows --monitor focused
aerospace list-windows --pid <pid>
aerospace list-windows --app-bundle-id <bundle-id>
aerospace list-windows --format '%{window-id} | %{app-name} | %{window-title}'
aerospace list-windows --json
list-apps - List running applications
aerospace list-apps
list-modes - List binding modes
aerospace list-modes
list-exec-env-vars - List environment variables for exec commands
aerospace list-exec-env-vars
config - Query config options
aerospace config <key>
focus - Focus window
aerospace focus left|down|up|right
aerospace focus dfs-next|dfs-prev
aerospace focus --window-id <id>
aerospace focus --dfs-index <index>
aerospace focus left --ignore-floating
aerospace focus right --boundaries workspace --boundaries-action wrap-around-the-workspace
move - Move window
aerospace move left|down|up|right
aerospace move --window-id <id> left
aerospace move right --boundaries workspace --boundaries-action stop
swap - Swap windows
aerospace swap left|down|up|right
resize - Resize window
aerospace resize smart +50 # Smart resize (larger)
aerospace resize smart -50 # Smart resize (smaller)
aerospace resize width +100 # Increase width by 100px
aerospace resize height -50 # Decrease height by 50px
aerospace resize --window-id <id> smart +50
close - Close window
aerospace close
aerospace close --window-id <id>
close-all-windows-but-current - Close all windows except current
aerospace close-all-windows-but-current
layout - Change layout
# Specific layouts
aerospace layout h_tiles # Horizontal tiles
aerospace layout v_tiles # Vertical tiles
aerospace layout h_accordion # Horizontal accordion
aerospace layout v_accordion # Vertical accordion
# Orientations
aerospace layout horizontal # Change to horizontal
aerospace layout vertical # Change to vertical
# Toggle commands (cycles through options)
aerospace layout tiles accordion # Toggle tile vs accordion
aerospace layout horizontal vertical # Toggle orientation
aerospace layout floating tiling # Toggle float vs tiling
# Window-specific
aerospace layout --window-id <id> floating
join-with - Join windows under common parent
aerospace join-with left|down|up|right
aerospace join-with right # Create nested vertical split
aerospace join-with down # Create nested horizontal split
aerospace join-with --window-id <id> right
split - Split focused window
aerospace split horizontal|vertical
flatten-workspace-tree - Flatten workspace tree
aerospace flatten-workspace-tree
balance-sizes - Balance window sizes
aerospace balance-sizes
fullscreen - Toggle AeroSpace fullscreen
aerospace fullscreen
aerospace fullscreen on
aerospace fullscreen off
aerospace fullscreen on --no-outer-gaps
aerospace fullscreen --window-id <id>
macos-native-fullscreen - Toggle macOS fullscreen
aerospace macos-native-fullscreen
macos-native-minimize - Minimize window
aerospace macos-native-minimize
workspace - Focus workspace
aerospace workspace 1 # Switch to workspace 1
aerospace workspace next # Next workspace
aerospace workspace prev # Previous workspace
aerospace workspace next --wrap-around
aerospace workspace 5 --auto-back-and-forth
aerospace workspace 3 --fail-if-noop
workspace-back-and-forth - Toggle between workspaces
aerospace workspace-back-and-forth
move-node-to-workspace - Move window to workspace
aerospace move-node-to-workspace 1
aerospace move-node-to-workspace next
aerospace move-node-to-workspace prev --wrap-around
aerospace move-node-to-workspace 5 --focus-follows-window
aerospace move-node-to-workspace --window-id <id> 3
move-workspace-to-monitor - Move workspace to monitor
aerospace move-workspace-to-monitor left|down|up|right
aerospace move-workspace-to-monitor next|prev
aerospace move-workspace-to-monitor <monitor-pattern>
summon-workspace - Move workspace to focused monitor
aerospace summon-workspace 1
focus-monitor - Focus monitor
aerospace focus-monitor left|down|up|right
aerospace focus-monitor next|prev
aerospace focus-monitor <monitor-pattern>
aerospace focus-monitor next --wrap-around
move-node-to-monitor - Move window to monitor
aerospace move-node-to-monitor left|down|up|right
aerospace move-node-to-monitor next|prev
aerospace move-node-to-monitor <monitor-pattern>
move-mouse - Move mouse cursor
aerospace move-mouse monitor-lazy-center
aerospace move-mouse monitor-force-center
aerospace move-mouse window-lazy-center
aerospace move-mouse window-force-center
mode - Activate binding mode
aerospace mode service
aerospace mode resize
aerospace mode main
trigger-binding - Trigger binding manually
aerospace trigger-binding --mode main --key alt-1
reload-config - Reload configuration
aerospace reload-config
enable - Enable/disable window management
aerospace enable on|off|toggle
volume - Manipulate volume
aerospace volume <args>
debug-windows - Debug Accessibility API
aerospace debug-windows
focus-back-and-forth - Toggle focus
aerospace focus-back-and-forth
# Current workspace
aerospace list-workspaces --focused
# All windows on current workspace
aerospace list-windows --workspace focused
# All monitors
aerospace list-monitors
# Current window tree
aerospace list-windows --workspace focused --format '%{window-id} | %{app-name}'
aerospace reload-config
# or use keybinding: alt-shift-r
Workspace assignment supports:
main - Primary monitorsecondary - Non-main monitor (2-monitor setups only)<number> - Monitor sequence (1-based, left to right)<regex> - Case-insensitive substring match'^pattern$' - Full regex matchExample:
[workspace-to-monitor-force-assignment]
1 = 'main'
2 = 'secondary'
3 = 1 # First monitor (leftmost)
4 = 2 # Second monitor
5 = 'built-in' # Substring match
6 = '^dell.*' # Regex match
7 = ['secondary', 'dell'] # Multiple patterns (fallback)
[gaps]
# Different gaps per monitor
inner.horizontal = [{ monitor.main = 0 }, { monitor.secondary = 8 }, 5]
outer.left = [{ monitor.'built-in' = 0 }, 10]
# Auto-tile all new windows
[[on-window-detected]]
if.during-aerospace-startup = false
run = 'layout tiling'
# Specific workspace behavior
[[on-window-detected]]
if.workspace = [1, 2, 3]
run = 'fullscreen on --no-outer-gaps'
# App-specific layout
[[on-window-detected]]
if.app-name-regex-substring = 'Terminal'
run = 'move-node-to-workspace 1'
[mode.service.binding]
esc = 'mode main'
r = ['flatten-workspace-tree', 'mode main']
f = ['layout floating tiling', 'mode main']
h = ['layout horizontal vertical', 'mode main']
[mode.main.binding]
alt-shift-semicolon = 'mode service'
ps aux | rg -i aerospace
aerospace list-workspaces --monitor focused --empty no
aerospace list-windows --workspace focused --format '%{window-id} | %{app-name} | %{window-title}'
~/.config/aerospace/aerospace.tomlaerospace reload-config or alt-shift-raerospace list-workspaces --monitor focusedaerospace list-windows --workspace focusedalt-shift-spacexiaohongshu
technical spec
product ux expert
database patterns
Conduct multi-agent task orchestration and workflow coordination.
Initialize project with Conductor artifacts (product definition,
Expert in web animations, transitions, and motion design using Framer Motion and CSS
Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...
PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.
Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...
Display project status, active tracks, and next actions
Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.
Generate, edit, and beat-sync AI video with leading models in one workspace.
The world's fastest calendar for remote work
Transform Your Design with AI Designer by ImgCreator.ai
Revolutionizing Video Production with AI-Powered Creativity
Extend an image past the frame and let AI fill the new aspect ratio.
Discover your celebrity doppelgänger with StarByFace!
ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.
Opus.ai: Revolutionize Your Web Experience