Question

In Awesome WM the way you switch between open programs is by going to the previous or next client. By default it uses the keybinding Mod4 + k and Mod4 + j respectively.

However, let say I have four clients open in my screen using the tile layout, whereas I have four tiles on screen showing each program. If currently I am on the top-left tile and I want to go to the bottom left, I need to press Mod4 + j twice, cycling to the top right before arriving at the bottom left. What I want is to go directly to that tile using a single keybinding, is that possible in Awesome. I know in i3 WM this is the default behaviour using the arrows keys to move up and down, left and right between open programs.

Était-ce utile?

La solution

The default config doesn't provide keybindigns for this, but you are looking for awful.client.focus.bydirection. For example, add a keybinding for this function:

function() client.focus.bydirection('down') end
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top