Layout won't load on startup

Asked by John H. Embretsen

I am trying to get terminator to start multiple windows each with multiple terminals in them, some of which will run a custom command on startup. I cannot get this to work, not even when trying a simplistic setup with one window, two terminals, no custom command.

What is the "official" way to do this?

I am using terminator 0.96 from ppa on Ubuntu 11.10. I have tried the following:

a) Saved simple layout as "john" from GUI preferences. Loading the layout using...

a1) terminator -l john
 - terminator window appears (sometimes) for a brief 10th of a second, then exits

a2) XDG_CONFIG_HOME=~/.config terminator -l john
 - terminator window appears (sometimes) for a brief 10th of a second, then exits

b) Saved a file using contents for "john" layout found in ~/.config/terminator/config:

[layouts]
 [[john]]
    [[[child0]]]
      position = 66:328
      type = Window
      order = 0
      parent = ""
      size = 1255, 842
    [[[child1]]]
      position = 627
      type = HPaned
      order = 0
      parent = child0
    [[[terminal3]]]
      profile = green
      command = date
      type = Terminal
      order = 1
      parent = child1
    [[[terminal2]]]
      profile = default
      command = echo $PATH
      type = Terminal
      order = 0
      parent = child1

Saved as ~/.config/terminator/test.layout.
Loading the layout using:

b1) terminator -l ~/.config/terminator/test.layout

 - terminator window with a single terminal, default profile, appears. Text output:

layout does not exist: /home/john/.config/terminator/test.layout
layout None not defined

NOTE: The file /home/john/.config/terminator/test.layout does indeed exist.

b2) XDG_CONFIG_HOME=~/.config terminator -l ~/.config/terminator/test.layout
 - same as b1).

Debug outpout says (excerpt):

noclass::<module>: Creating a terminal with layout: /home/john/.config/terminator/test.layout
layout does not exist: /home/john/.config/terminator/test.layout
layout None not defined
Factory::make: Factory::make: created a Window
Terminator::register_window: Terminator::register_window: registering 52182064:<class 'terminatorlib.window.Window'>
ConfigBase::load: ConfigBase::load: config already loaded
Config::set_profile: Config::set_profile: Changing profile to default

For a) above, terminator debug output says, at the end:

Signalman::remove_signal: no more signals for widget
Terminator::deregister_terminal: Terminator::deregister_terminal: de-registering 40743792:<class 'terminatorlib.terminal.Terminal'>
Terminator::deregister_terminal: no terminals remain, destroying all windows
Window::on_destroy_event: destroying self
Terminator::deregister_window: Terminator::deregister_window: de-registering 37858352:<class 'terminatorlib.window.Window'>
Terminator::deregister_window: no windows remain, quitting
ConfigBase::get_item: ConfigBase::get_item: autoclean_groups found in profile default: True
Terminator::group_hoover: Terminator::group_hoover: 0 groups, hoovering 0

Question information

Language:
English Edit question
Status:
Answered
For:
Terminator Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Launchpad Janitor (janitor) said :
#1

This question was expired because it remained in the 'Open' state without activity for the last 15 days.

Revision history for this message
John H. Embretsen (johnemb) said :
#2

I thought this was a rather common use-case for Terminator. Noone able to tell me what is going on?

Revision history for this message
Launchpad Janitor (janitor) said :
#3

This question was expired because it remained in the 'Open' state without activity for the last 15 days.

Revision history for this message
John H. Embretsen (johnemb) said :
#4

I still need an answer.

Revision history for this message
Jim Salter (jrssnet) said :
#5

You can't assign multiple terminals to the same child. I know, this is very frustrating; I'm still fighting with the configs myself. I want a 3x3 grid in a single maximised window; I've managed THAT much, but now I'm having trouble with making them all the same size. Not the best syntax. =)

Here's a (relatively) simple config, for a 2x2 grid in one maximized window, that you can hopefully begin to extrapolate your answers from:

[global_config]
  window_state = maximise
[keybindings]
[profiles]
  [[default]]
    use_system_font = False
    font = Monospace 8
    background_color = "#ffffff"
    cursor_color = green
    foreground_color = "#000000"
[layouts]
  [[default]]
    [[[child0]]]
      position = 1920:0
      type = Window
      order = 0
      parent = ""
      size = 1920, 1032
    [[[child1]]]
      position = 960
      type = HPaned
      order = 0
      parent = child0
    [[[child2]]]
      position = 516
      type = VPaned
      order = 0
      parent = child1
    [[[child3]]]
      position = 258
      type = VPaned
      order = 0
      parent = child2
    [[[child7]]]
      position = 516
      type = VPaned
      order = 1
      parent = child1
    [[[child8]]]
      position = 258
      type = VPaned
      order = 0
      parent = child7
    [[[child9]]]
      position = 477
      type = HPaned
      order = 0
      parent = child8
    [[[child12]]]
      position = 477
      type = HPaned
      order = 1
      parent = child8
    [[[terminal11]]]
      profile = default
      type = Terminal
      order = 1
      parent = child9
    [[[terminal10]]]
      profile = default
      type = Terminal
      order = 0
      parent = child9
    [[[terminal13]]]
      profile = default
      type = Terminal
      order = 0
      parent = child12
    [[[terminal5]]]
      profile = default
      type = Terminal
      order = 1
      parent = child3
    [[[terminal4]]]
      profile = default
      type = Terminal
      order = 0
      parent = child3
    [[[terminal17]]]
      profile = default
      type = Terminal
      order = 1
      parent = child15
    [[[terminal6]]]
      profile = default
      type = Terminal
      order = 1
      parent = child2
    [[[terminal16]]]
      profile = default
      type = Terminal
      order = 0
      parent = child15
    [[[child15]]]
      position = 477
      type = HPaned
      order = 1
      parent = child7
    [[[terminal14]]]
      profile = default
      type = Terminal
      order = 1
      parent = child12
[plugins]

Revision history for this message
Charles Phillips (doublerebel) said :
#6

For anyone else with this issue, try LayoutManager from https://github.com/camillo/TerminatorPlugins . Thanks camillo!

Can you help with this problem?

Provide an answer of your own, or ask John H. Embretsen for more information if necessary.

To post a message you must log in.