You are not logged in.

#1 2022-04-04 06:06:12

Archlin
Member
Registered: 2018-05-09
Posts: 67

I3 open multiple terminals with one binding with specific layout

I want to open 3 terminal (programs) with one keybinding and get this layout on a specific workspace.

|----------|----------|
|          |          |
|          |----------|
|          |          |
|----------|----------|

I tried a bunch of bindings and the programs open on the workspace I want but not with the layout I want.
I get a full vertical or horizontal layout.

bindsym Ctrl+$alt+p workspace $wsp0; exec $terminal -e ytop; exec $mail; layout splitv; exec $calendar
bindsym Ctrl+$alt+p workspace $wsp0; exec $terminal -e ytop; layout splith; exec $mail;  layout splitv; exec $calendar
bindsym Ctrl+$alt+p workspace $wsp0; layout splith; exec $terminal -e ytop; layout splitv; exec $mail;  exec $calendar
bindsym Ctrl+$alt+p workspace $wsp0; exec $terminal -e ytop; layout splitv; exec $mail;  exec $calendar

Offline

#2 2022-04-11 18:47:20

mf2
Member
Registered: 2022-04-11
Posts: 1

Re: I3 open multiple terminals with one binding with specific layout

If you put a bunch of bindings for the same key in the config, you might not get the behavior that you expect, i.e. the commands are not executed sequentially.

However, you can create a script which calls i3-msg several times to create the layout you desire. See the documentation for more info on i3-msg: https://i3wm.org/docs/userguide.html#list_of_commands

Offline

#3 2022-04-11 20:55:35

Tarqi
Member
From: Ixtlan
Registered: 2012-11-27
Posts: 180
Website

Re: I3 open multiple terminals with one binding with specific layout


Knowing others is wisdom, knowing yourself is enlightenment. ~Lao Tse

Offline

Board footer

Powered by FluxBB