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 2013-02-17 23:49:39 +0000

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)?

edit retag flag offensive close merge delete

1 answer

Sort by » oldest newest most voted
1

answered 2013-02-18 00:05:58 +0000

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.

edit flag offensive delete link more

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 ( 2013-02-18 00:10:21 +0000 )edit

Question Tools

Stats

Asked: 2013-02-17 23:49:39 +0000

Seen: 334 times

Last updated: Feb 18 '13