Layouts
Rotate, maximize and floating
Rotate a layout, maximize and move windows between workspaces, floating windows, native fullscreen and marks.
Rotate
layout rotate cw and layout rotate ccw move every window one slot around the layout. The slots keep their sizes. This
works in every layout.
Maximize and moving windows between workspaces
In the scrolling layout, window maximize keeps the window in its place in the strip. In the other layouts, it makes
the window fill the work area inside the outer gaps while the others stay tiled behind it. window fullscreen fills the
work area with no gaps and no border.
A window that you send to another workspace arrives maximized when that workspace has no other tiled window. When the
workspace has windows, the window joins the layout and balance runs. Add --tile to join the layout without either.
Floating windows, native fullscreen and marks
window floatmoves the window to the middle of its screen. It keeps its size, but a window that fills (about) the whole work area gets 60% of it, so you can see it float. Windows that open floating (rules, dialogs) keep their own place.window float onandwindow float offfloat or tile the window and never toggle, so a bind can be repeated safely.window centerfloats the window (a tiled one first) and puts it in the middle of its monitor, with the same size.move <dir> [points]andresize <width|height> <+n|-n>work on a floating window too: it moves bypoints(40 if you leave it out) or changes by n points, keeps its top left corner when it resizes, and stays inside the work area of its monitor. At the edgemovestops; it does not go to the next monitor.window snap <place>floats the window (a tiled one first) into a part of the work area inside the gaps:left,right,top,bottom, the four corners, orcenter. The same place again goes on to the next size: half, a third, two thirds (center: 60%, 80%, 40%).window raise-floatingbrings the floating windows of the workspace to the front.window rescuemoves a floating window that is mostly off screen back into the work area of its monitor (a window larger than the area is cut down).window native-fullscreenenters or leaves macOS fullscreen. A window in macOS fullscreen has a Space of its own, so wm leaves it out of the layout until it comes back.list windowsshows it asfullscreen. While that Space is in front, macOS shows wm only the windows of that Space, so every other window looks gone. wm asks macOS where a window that it cannot see is (the private SkyLight functionCGSCopySpacesForWindows), and keeps the window, with its workspace and its place in the layout, while it is on another Space. It forgets a window only when no Space has it. If the function is missing on a future macOS, wm forgets such windows as before.window mark <name>gives the window a name, andwindow unmark [name]takes it away (without a name, all marks of the window). A name belongs to one window, so marking another window with it moves the mark.focus mark <name>focuses the window, and--window mark:<name>acts on it. Marks last until the window closes, and wm saves them with the layout.