Window Focus Commands
focusstack
Focus the next or previous window in the tiling stack order.Direction:
NEXT or PREV to cycle through windows- Focuses next/previous tiled window on current monitor
- Skips floating windows
- Wraps around to first window when reaching the end
- Optionally warps cursor to focused window if
warpcursor=1
focusdir
Focus window in a specific direction (left, right, up, down).Direction:
LEFT, RIGHT, UP, or DOWN- Focuses window in the specified direction based on spatial layout
- If no window found in direction and
focus_cross_tag=1, switches to adjacent tag - If no window found and
focus_cross_monitor=1, switches to adjacent monitor - Works with both tiled and floating windows
focusmon
Focus a different monitor.Direction:
LEFT, RIGHT, or monitor nameMonitor name/spec to focus
- Switches focus to specified monitor
- Focuses topmost window on target monitor
- Optionally warps cursor to target monitor if
warpcursor=1
focuslast
Focus the last focused window. Example:- Cycles through focus history
- Switches to the tag containing the last focused window
- Useful for quickly switching between two windows
Window State Commands
togglefloating
Toggle floating state of focused window. Example:- Makes tiled window floating or floating window tiled
- Floating windows can be freely moved and resized
- Tiled windows participate in automatic layout
- Preserves window geometry when toggling
togglefullscreen
Toggle fullscreen state of focused window. Example:- Expands window to cover entire monitor
- Hides borders and gaps
- Window is on top of all other windows
- Restores previous state when toggled off
togglefakefullscreen
Toggle fake fullscreen state. Example:- Window appears fullscreen but only within its workspace area
- Allows other windows to remain visible on other monitors
- Useful for applications that don’t handle true fullscreen well
togglemaximizescreen
Toggle maximized state of focused window. Example:- Expands window to fill available space
- Respects gaps and borders
- Different from fullscreen (not always on top)
- Window border changes to
maximizescreencolor
toggleglobal
Toggle global state (visible on all tags). Example:- Makes window visible on all tags/workspaces
- Useful for monitoring applications, chat clients
- Window border changes to
globalcolor - Window exits scroller stack if in one
toggleoverlay
Toggle overlay mode for focused window. Example:- Places window in overlay layer (above all other windows)
- Window remains on top regardless of focus
- Border changes to
overlaycolor - Cannot be used with fullscreen windows
minimized
Minimize the focused window. Example:- Hides window from view
- Window remains in compositor but not visible
- Can be restored with
restore_minimized - Does not work in overview mode
restore_minimized
Restore the last minimized window. Example:- Restores most recently minimized window
- Focuses and shows the window
- Switches to the tag containing the window
- Warps cursor to window if
warpcursor=1
toggle_scratchpad
Toggle scratchpad visibility. Example:- Shows/hides scratchpad windows
- Scratchpad is a hidden workspace for temporary windows
- Window appears centered on screen with configured size
- Border changes to
scratchpadcolor
toggle_named_scratchpad
Toggle a named scratchpad (specific application).Application ID
Window title
Command to spawn if window doesn’t exist
- Shows/hides a specific application as scratchpad
- Launches application if it doesn’t exist
- Useful for dropdown terminals, calculators, etc.
Window Movement Commands
exchange_client
Swap focused window with window in specified direction.Direction:
LEFT, RIGHT, UP, or DOWN- Swaps position of focused window with adjacent window
- Only works with tiled windows
- Does not work in fullscreen or maximized state
- Maintains layout structure
exchange_stack_client
Swap focused window with next/previous in stack.Direction:
NEXT or PREV- Swaps window with next/previous in stack order
- Only works with tiled windows
- Does not work with floating, fullscreen, or maximized windows
movewin
Move floating window by pixel offset.Operation type:
NUM_TYPE_PLUS, NUM_TYPE_MINUS, or absoluteX offset in pixels
Operation type for Y
Y offset in pixels
- Moves window by specified pixel offset
- Automatically makes window floating if tiled
- Does not work with fullscreen windows
- Use
+prefix for relative movement
smartmovewin
Intelligently move floating window avoiding collisions.Direction:
LEFT, RIGHT, UP, or DOWN- Moves window in direction while avoiding other windows
- Snaps to edges of other windows
- Automatically makes window floating
- Respects monitor boundaries
centerwin
Center window on monitor. Example:- Centers floating window on current monitor
- For scroller layout, centers tiled window horizontally/vertically
- Does not work with fullscreen or maximized windows
Window Resizing Commands
resizewin
Resize window by pixel offset.Operation type:
NUM_TYPE_PLUS, NUM_TYPE_MINUS, or absoluteWidth change in pixels
Operation type for height
Height change in pixels
- Resizes window by specified pixel amount
- Works with both floating and tiled windows
- For tiled windows, adjusts window proportion
- Does not work with fullscreen or maximized windows
- Use
+prefix for relative sizing
smartresizewin
Intelligently resize window avoiding collisions.Direction:
LEFT, RIGHT, UP, or DOWN- Resizes window in direction while avoiding other windows
- Snaps to edges of other windows
- Automatically makes window floating
- Respects monitor boundaries
moveresize
Interactive move/resize with mouse.Mode:
CurMove or CurResize- Enters interactive move/resize mode
curmove: Drag to move windowcurresize: Drag to resize window from nearest corner- Automatically makes window floating if tiled
- Does not work with fullscreen or maximized windows
Other Window Commands
killclient
Close the focused window. Example:- Sends close request to focused window
- Application may prompt to save changes
- If application doesn’t respond, may need force quit
zoom
Move focused window to master position. Example:- Swaps focused window with master window
- Only works with tiled windows in layouts with master area
- Does not work with floating windows
toggle_render_border
Toggle border rendering on/off. Example:- Globally enables/disables window borders
- Affects all windows
- Useful for screenshots or maximizing screen space
