Skip to content

focusdir

bakkeby edited this page Jul 1, 2024 · 5 revisions

The built-in focusstack function in dwm allow users to focus up and down the stack and this works well with the built-in tile layout.

For grid layouts or the fibonacci spiral / dwindle layouts, as an example, it may be desireable to focus in a given direction rather than just up and down the stack, for example to focus on the client on the immediate right of the currently focused client.

This patch adds directional focus by calculating the best suitable candidate based on the position and size of all visible clients.

focusdir.gif

Features

  • focus on the next client in any direction (up, down, left, right)
  • focus wraps around within the same monitor (as opposed to focus drifting to an adjacent monitor)
  • supports focusing on stacked clients (e.g. deck layout)
  • focus restricted to floating or tiled windows only (depending on the state of the currently focused client)

Download

Clone this wiki locally