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

Show split mode of container (status bar?)

asked Jan 20 '15

fnl gravatar image

updated Jan 20 '15

A container can be in horizontal or vertical split mode. I might have changed its "initial default" mode or not (I have one horizontal and one vertical screen), so when I get back to that workspace and screen, I usually don't know which mode is currently active for all my containers there.

Therefore, I have observed myself doing the following steps rather too often:

  1. I try to open a terminal first to see what would happen,
  2. close that terminal again,
  3. possibly change the split mode, and
  4. only then open the program I want.

If, instead, i3wm were to show me the current "split mode" the container is in, I would not need to check that first by trying to open a terminal to learn the split mode the container is in.

So my questions are:

  1. Am I doing anything wrong here, maybe?
  2. If not, how can I get a [visual] indicator of the current container's split mode?

2 answers

Sort by » oldest newest most voted
1

answered Jan 20 '15

Michael Rose gravatar image

Please see https://faq.i3wm.org/question/50/what...

I3 shows you where the next window will be placed by coloring the border on the side where the window will be placed a different color this is referred to as an indicator. If you have no border at all or have this color set to the same as your normal border color you will not have been able to see this.

Regarding configuring colors please see.

http://i3wm.org/docs/userguide.html#changingcolors

For better usability set the indicator to a distinctive color or just press whatever hotkey you have bound to split horizontal or split vertical before opening a new window to ensure it appears in the right location.

Comments

Maybe it's just me, but I think this feature should be mentioned in the User Guide, in the "3. Tree" chapter, or even already in "2.2 Changing the container layout". With this indicator, it's much easier for me to get to the window layout I want, particularly when I come back to a workspace again.

fnl gravatar imagefnl (Jan 20 '15)edit
0

answered Jan 20 '15

Instead of testing by launching a container, just confirm $mod+v of $mod+h what setting you want, given this in your i3 config:

bindsym $mod+v split vertical bindsym $mod+h split horizontal

Also, if your containers have borders, and you didn't hide any of them, depending on your color settings, it will show a different color on the (right or bottom) side of the container to indicate the current split mode. I can't find any reference to this in the docs, and cannot say which setting exactly defines this, but if you try out some different colours for different types of borders, you might get to see what I mean.

Comments

to configure the color of the border indication examine the docs regarding configuring colors the focused window is client.focused the 4th hex color is the indicator color like so #class border backgr text indicator client.focused #111111 #3D0DFF #FFFFFF #900000

Michael Rose gravatar imageMichael Rose (Jan 20 '15)edit

Question Tools

Stats

Asked: Jan 20 '15

Seen: 435 times

Last updated: Jan 20