[i3] Change focus in i3-tree

  • From: Marcus Crestani <crestani@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
  • To: i3-discuss@xxxxxxxxxxxxx
  • Date: Sun, 17 Jul 2011 09:38:45 +0200

I have trouble achieving certain focus change functionality in
i3-tree-pr4 that I use all the time in i3-v3.

My screen shows something like this:

+---------------------+---------------------+
|=t1=======| t2 | t3 |=t4=======+
+---------------------+---------------------+
| $ | $ |
| | |
| | |

Two containers, each tabbed, one on the left hand side with two
terminal windows (t1 and t2, where t1 is in front, denoted by ===) and
one on the right hand side with two more terminal windows (t3 and t4,
where t4 is in front, also denoted by ===). Focus is on t1.

In i3-v3, I can hit the key that I've configured to `wcl' to move focus
from t1 to t4 directly, and `wcj' to move focus from t4 to t1 directly.

In i3-tree, the "with container" commands are obsolete, so the `wc*'
commands do not exist anymore. How can I achieve the described focus
change in i3-tree?

In i3-tree, it seems to me that I only can `focus left' and `focus
right'. Coming from t1, a `focus right' key brings t2 to front, then
moves over to t3 and brings it to front, then moves to t4, but t1 is no
longer visible:

+---------------------+---------------------+
| t1 |=t2=======| t3 |=t4=======+
+---------------------+---------------------+
| $ | $ |
| | |
| | |

Maybe the right way to think about this focus navigation in i3-tree is
something like "focus left parent" respectively "focus right parent"?
Is there a way to bind a key to a sequence of commands, eg. `focus
parent; focus left'?

What am I missing?

--
Marcus

Other related posts:

  • » [i3] Change focus in i3-tree - Marcus Crestani