终结者 – 用于打开多个标签的键盘快捷键
我想使用两个选项卡将自定义热键绑定到打开终止符,每个选项卡执行不同的命令
在这里敲我几个小时:)
为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窗口,其中有两个选项卡运行这两个命令。 现在将上面的命令设置为快捷键或别名。