The i3 FAQ has migrated to https://github.com/i3/i3/discussions. All content here is read-only.
Ask Your Question
1

focus cycle between specific windows

asked Feb 17 '13

muz gravatar image

User's guide has these lines as an example :

# Get me to the next open VIM instance

bindsym $mod+a [class="urxvt" title="VIM"] focus

In my case, this always takes me to the LAST vim instance rather than the NEXT vim instance.

I would like to cycle between vim instances using a keybinding, is it possible to implement this with only config (no scripting)?

1 answer

Sort by » oldest newest most voted
1

answered Feb 18 '13

Michael gravatar image

No, cycling between windows is not possible without external scripting.

There is a script which focuses the next chrome instance on a workspace (which I believe is better than the “focus” command, which will just match any window AFAIR): http://code.stapelberg.de/git/i3-egg/...

Maybe that can serve as a starting point/inspiration.

Comments

Thank you for your response, your script i seems like a very good starting point indeed. Maybe somebody should edit the User's Guide to avoid misunderstandings, because it does sound like the cycling behavior is default.

muz gravatar imagemuz (Feb 18 '13)edit

Question Tools

Stats

Asked: Feb 17 '13

Seen: 334 times

Last updated: Feb 18 '13