I’m using these commands for moving the focus between frames:
# focusing clients
hc keybind $Mod-Left focus left
hc keybind $Mod-Down focus down
hc keybind $Mod-Up focus up
hc keybind $Mod-Right focus right
hc keybind $Mod-h focus left
hc keybind $Mod-j focus down
hc keybind $Mod-k focus up
hc keybind $Mod-l focus right
The movement algorithm is described here (in the ‘focus’ section):
https://herbstluftwm.org/herbstluftwm.html
Example: The focus is at frame A. After executing focus right focus will be at frame C.
Tree: H,0 Screen: ┌─────┐┌─────┐ (before)
╱ ╲ │ B ││ C │
╱ ╲ └─────┘└─────┘
V,1 V,0 ┌─────┐┌─────┐
╱ ╲ ╱ ╲ │ A* ││ D │
B A* C D └─────┘└─────┘
Tree: H,1 Screen: ┌─────┐┌─────┐ (after focus right)
╱ ╲ │ B ││ C* │
╱ ╲ └─────┘└─────┘
V,1 V,0 ┌─────┐┌─────┐
╱ ╲ ╱ ╲ │ A ││ D │
B A C* D └─────┘└─────┘
Is it possible to make it move from A to D and from B to C? It feels more natural…
TIA,
Joe