This seems like a typical use-case yet I can't find a way to do it- I created a layout having multiple windows. I want each window to open an SSH session to a different server.
Asked
Active
Viewed 4.8k times
2 Answers
29
- Go to the Layout tab in the configuration dialog,
- Select your layout
- In the terminal in the tree view in the middle, select your first terminal, select your profile and enter at the right the "custom command"
- Repeat step 3 for all your terminals where you want to run a special command at startup.
Use always the same layout and the same profile.
When done click on close and quit terminator.
When starting terminator again give the layout and the profile as command line option.
ie. terminator -l Layout1 -p Profile1
If you always want this, add an alias to .bashrc
.

fosslinux
- 3,831

max.haredoom
- 406
2
I worked with this for a while, and the ; bash advice is correct. One other piece of advice is after entering the custom commands in the Profiles area of Preferences, if you click Save, it will wipe out all of the custom commands. If you enter the custom commands and simply close the preferences window, the preferences are preserved.

David
- 21
~/.config/terminator/config
and add command to one of theTerminal
sections:command = cd /some/folder; bash
– iamantony Oct 10 '17 at 09:40; bash
or; zsh
(depending on your shell) after each custom command in your layout. Then it works fine and opens all windows. Without it terminator might open only one window. – luke Apr 09 '19 at 08:27; bash
and not pressing save (see https://gnome-terminator.readthedocs.io/en/latest/preferences.html#layouts) worked. – juanignaciosl Nov 03 '21 at 10:03