[i3] Predefined Layouts

  • From: James Robertson <j@xxxxxxxxxxxxxxxx>
  • To: "Discussions/Questions about the i3 window manager" <i3-discuss@xxxxxxxxxxxxx>
  • Date: Wed, 25 Apr 2012 14:44:46 +1000

I did a bit of a search through the archives and found this thread:
http://infra.in.zekjur.net/archives/i3-discuss/2012-January/000443.html

It was mentioned that predefined layouts and sessions are planned for
i3 but I was wondering if there is a way to get this functionality
working.

I have a fairly simple desire to start some terminals in a specific
layout but I am having problems getting the layout working.

I want a terminal open on the left of screen in horizontal and 2
terminals open on the right hand side in a vertical split.

Here is what I want to achieve represented in ascii (If it comes out
wrong in your email then below it is a link to an image).

┌────────────┬────────────┐
│ │ │
│ │ │
│ │ │
│ ├────────────┤
│ │ │
│ │ │
│ │ │
└────────────┴────────────┘

http://ompldr.org/vZGk3Zw

I have tried various options but none work as desired. for example...

#!/bin/bash

i3-msg split h
i3-msg exec urxvt
i3-msg split v
i3-msg exec urxvt
i3-msg exec urxvt

But only end it with 3 terminals horizontal. I have tried changing
this with various options and focus. I also ran these on the command
line separated by ";".

Is this because i3-msg is running these commands against the currently
focused window instead of the newly created ones?

Is this possible yet or would I be better waiting until i3 includes
support and try to script it with xdotool?

Thanks

Other related posts:

  • » [i3] Predefined Layouts - James Robertson