aerospace-edge move¶
Move the focused window in the given direction
Synopsis¶
aerospace-edge move [-h|--help] [--window-id <window-id>] [--boundaries <boundary>]
[--boundaries-action <boundary-action>] [--fail-if-fullscreen]
[--fail-if-macos-native-fullscreen] (left|down|up|right)
Description¶
Move the focused window in the given direction. See the "Examples" section for more details.
Deprecated name: move-through
Options¶
-h,--help-
Print help
--window-id <window-id>-
Act on the specified window instead of the focused window. The flag takes precedence over
AEROSPACE_WINDOW_IDandAEROSPACE_WORKSPACEenvironment variables. --boundaries <boundary>-
Defines move boundaries.
<boundary>possible values:(workspace|all-monitors-outer-frame).
The default is:workspace --boundaries-action <boundary-action>-
Defines the behavior when requested to move across the
<boundary>.
<boundary-action>possible values:(stop|fail|create-implicit-container|create-implicit-container-or-fail).
The default is:create-implicit-container --fail-if-fullscreen-
Exit with non-zero code if the target window is fullscreen by the
fullscreencommand. --fail-if-macos-native-fullscreen-
Exit with non-zero code if the target window is in macOS native fullscreen.
Examples¶
-
Given this layout
h_tiles ├── window 1 (focused) └── window 2move rightwill result in the following layouth_tiles ├── window 2 └── window 1 (focused) -
Given this layout
h_tiles ├── window 1 ├── window 2 (focused) └── v_tiles ├── window 3 └── window 4move rightwill result in the following layouth_tiles ├── window 1 └── v_tiles ├── window 3 ├── window 2 (focused) └── window 4 -
Given this layout
h_tiles ├── window 1 └── v_tiles ├── window 3 ├── window 2 (focused) └── window 4move leftwill result in the following layouth_tiles ├── window 1 ├── window 2 (focused) └── v_tiles ├── window 3 └── window 4 -
Implicit container example
In some cases,
moveneeds to implicitly create a container to fulfill your command.Given this layout
h_tiles ├── window 1 ├── window 2 (focused) └── window 3move upwill result in the following layoutv_tiles ├── window 2 (focused) └── h_tiles ├── window 1 └── window 3v_tilesis an implicitly created container.Remark: If
--boundariesis set toall-monitors-outer-frameand there is a monitor in theupdirection, the implicit container isn’t created.Instead,
window 2would be moved to the monitor above the current.Remark on
create-implicit-container-or-fail: When--boundaries-actionis set tocreate-implicit-container-or-fail(and normalization is enabled), the command will fail if the newly created implicit container is immediately flattened away by container normalization.