Terminator - 用于打开多个选项卡的键盘快捷键

Terminator - 用于打开多个选项卡的键盘快捷键

我想绑定一个自定义热键来打开带有两个选项卡的终结器,每个选项卡执行不同的命令

在这里敲了好几个小时的脑袋:)

答案1

定义几个配置文件和布局terminator

[profiles]
  [[default]]
    # Your default profile remains untouched...
 [[command1]]
    use_custom_command = True
    custom_command = "watch date"
 [[command2]]
    use_custom_command = True
    custom_command = "top"
[layouts]
  [[default]]
  # Your default layout remains untouched...
  [[your-layout]]
    [[[child0]]]
      type = Window
      order = 0
      parent = ""
    [[[child1]]]
      labels = None, None
      type = Notebook
      order = 0
      parent = child0
    [[[terminal3]]]
      type = Terminal
      order = 1
      parent = child1
      profile = command1
    [[[terminal2]]]
      type = Terminal
      order = 0
      parent = child1
      profile = command2

现在如果你terminator这样启动:

terminator --layout your-layout

它应该会打开一个 Terminator 窗口,其中有两个选项卡运行这两个命令。现在将上述命令设置为快捷键或别名。

相关内容