AEROSPACE-SWAP(1)

πŸ“¦ version 0.21.3-Beta, in nixpkgs unstable

πŸ’… AEROSPACE-SWAP(1) β€” the AeroSpace manual, bestie edition πŸ¦‹

okay so real talk, this is aerospace-swap from the AeroSpace manual and it's literally about swapping your focused window with another window ✨ no cap, that's the whole vibe.


🌸 NAME 🌸

aerospace-swap β€” swaps the focused window with another window 🫢


⭐ SYNOPSIS ⭐

aerospace swap [-h|--help] [--window-id <window-id>] [--swap-focus]
               [--wrap-around] (left|down|up|right|dfs-next|dfs-prev)

like, that's the whole shape of it. flags first, direction last, periodt πŸ‘‘


πŸ’– DESCRIPTION πŸ’–

Swaps the focused window with another window. that's it, that's the girl πŸ’…

the operation is equivalent to dragging a window with the mouse β€” so if you've ever yeeted a window across the screen with your cursor and thought "wow this is iconic but also my wrist hurts", yeah, this command is that, but fancy ✨


πŸŽ€ OPTIONS πŸŽ€

  • -h, --help β€” print help. the classic "wait what does this do again" button 🫢
  • --window-id <window-id> β€” act on the specified window instead of the focused window. and listen: this flag takes precedence over the AEROSPACE_WINDOW_ID and AEROSPACE_WORKSPACE environment variables. so if you're setting those env vars and also passing this flag, the flag wins, sorry not sorry πŸ’…
  • --swap-focus β€” swap focus away from the currently focused window. because by default, this command does not change the focused window. so the focus stays put unless you explicitly ask for it to move, iykyk 🌸
  • --wrap-around β€” wrap around if the window is at the edge of the workspace (for (left|down|up|right)) or the start/end of the depth first order (for (dfs-next|dfs-prev)). so instead of hitting a wall and giving up, it loops back around like a main character who refuses to be stopped πŸ”₯

πŸ¦‹ ARGUMENTS πŸ¦‹

  • (left|down|up|right) β€” swaps the focused window with the nearest window in the given direction. simple, clean, directional slay β¬…οΈβ¬‡οΈβ¬†οΈβž‘οΈ
  • (dfs-next|dfs-prev) β€” swaps the focused window with the next or previous window in the depth-first order (top-to-bottom and left-to-right) of windows in the current workspace tree. yes bestie, there's a whole tree, and this walks it in order, no cap 🌈

🧚 RESOURCES 🧚

go read the guide, it's giving "useful" and honestly obsessed πŸ’œ


πŸ’€ BUGS πŸ’€

bugs can be reported to:

https://github.com/nikitabobko/AeroSpace/discussions/categories/potential-bugs

maintainers will move verified bugs to:

https://github.com/nikitabobko/AeroSpace/issues

so like, drop it in discussions first, they'll graduate it to issues when it's confirmed fr fr πŸ™ˆ


πŸ‘‘ LICENSE πŸ‘‘

Copyright Β© 2023 Nikita Bobko

Free use of this software is granted under the terms of the MIT License

You can find the full text of AeroSpace license and its dependencies in the 'legal' directory of the distributed zip archive.

like, it's MIT, it's free, go wild, but the receipts live in 'legal' πŸ’–


🌟 AUTHOR 🌟

Nikita Bobko and contributors β€” the icons, the moment, the legends ⭐


ngl, if you're at the edge of a workspace and nothing's happening, that's not a bug, that's --wrap-around not being passed. vibe check your flags first 🫢

AeroSpace Β· 2026-07-16 Β· that's the date stamp bestie, and this was AEROSPACE-SWAP(1), k bye, go swap some windows πŸ’…βœ¨πŸŽ€

πŸ“¦ where this page comes from