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

Auto start terminals in 4x4 layout

asked Jun 15 '13

marky gravatar image

updated Jun 15 '13

Hi folks,

Love i3, trying to get i3 to launch 4 terminal windows and have them in a 2x2 tiled layout. Here is what I have tried, however I just 4 terminals in a 4 columns.

exec --no-startup-id i3-msg 'workspace 3: Terms; exec urxvt'
exec --no-startup-id i3-msg 'workspace 3: Terms; split v'
exec --no-startup-id i3-msg 'workspace 3: Terms; exec urxvt'
exec --no-startup-id i3-msg 'workspace 3: Terms; split h'
exec --no-startup-id i3-msg 'workspace 3: Terms; exec urxvt'
exec --no-startup-id i3-msg 'workspace 3: Terms; split v'
exec --no-startup-id i3-msg 'workspace 3: Terms; exec urxvt'

1 answer

Sort by » oldest newest most voted
0

answered Jun 15 '13

cee gravatar image

updated Jun 16 '13

Hi,

There is a similar question named 'How can I define my workspace on startup' from Bruno Braga.

You have to give the called program some time to open, before calling split [v|h] and the next program.

There is a script file on github that does something very similar and should be easily adapted to your use-case.
github.com/fhaun/config-misc/blob/master/i3-stuff/auto-start-for-i3

Comments

Thanks cee, couldn't find the other question,but the script looks useful.

marky gravatar imagemarky (Jun 15 '13)edit

Question Tools

Stats

Asked: Jun 15 '13

Seen: 2,152 times

Last updated: Jun 16 '13