placedir - bakkeby/dusk GitHub Wiki

Function Expected argument Default keybinding
placedir 0, 1, 2 and 3 Super+Ctrl+<arrow key>

The placedir function allows clients to swap places in a directional manner by calculating the best suitable candidate based on the position and size of all visible windows.

This may be desirable for grid layouts or the fibonacci spiral / dwindle layouts rather than simply moving clients up and down the stack.

placedir.gif

Features

  • move a client in any direction (up, down, left, right)
  • swaps places with the target client in the given direction
  • works across workspaces (when more than one workspace is viewed at the same time)
  • will be independently moved to an empty workspace in the given direction
  • wraps around across monitors (as opposed to being isolated to a single monitor)
  • restricted to tiled windows only

This is accessible through Super+Ctrl+<arrow> directional keys.

Tip: When using runtime configuration the direction name can be passed as the argument, making for more readable configuration. The name matching is case-insenstive.

  { modifier = "Super", key = "Left", function = "placedir", argument = "left" },
  { modifier = "Super", key = "Right", function = "placedir", argument = "right" },
  { modifier = "Super", key = "Up", function = "placedir", argument = "up" },
  { modifier = "Super", key = "Down", function = "placedir", argument = "down" },

External commands:

duskc run_command placedir 0  # Left
duskc run_command placedir 1  # Right
duskc run_command placedir 2  # Up
duskc run_command placedir 3  # Down

Also see focusdir.

Back to Functions > Tiled.

⚠️ **GitHub.com Fallback** ⚠️