sudo apt-get install terminator
刚安装完terminator之后默认没有配置文件,可以自己新建~/.config/terminator/config
文件或者自己鼠标放在terminator的任意空白处右击选择preferences随便设置一些就可以自动生成~/.config/terminator/config
文件.
我们要配置一个2X2的界面,步骤如下, 同理,可以配置任意多的界面.
(1)打开一个Terminator, 分成2x2的界面;
(2)进入任何一个Panel, 右键->Preference->Layouts->add->default->save, 此时~/.config/terminator/config
里会生成这个layout的配置文件;
(3)cd ~/.config/terminator/config
, 复制config内容粘贴到空文件中, 文件名为my_terminator, terminator -g my_terminator
即可打开
(4)可根据需要让每个penal对应的widow执行某些指令. 添加title = , 设置Window中的command =.
例:
[[[terminal3]]]
command = source ../devel/setup.sh; .roslaunch --wait my_rosnode my_rosnode.launch; bash
title = my_rosnode
title = my_ros_node
order = 0
parent = child2
profile = default
type = Terminal
uuid = c17f3429-c23a-4838-b7f7-647a74c2d095
[[[terminal4]]]
command = source ../devel/setup.sh; roscore ; bash
order = 1
parent = child2
profile = default
type = Terminal
uuid = d24d6048-8240-483e-b3f3-3a63782bbf45
[[[terminal6]]]
command = cd ../..; ./executable_file; bash
order = 0
parent = child5
profile = default
type = Terminal
uuid = 24a46732-d31a-439f-9464-2343167e4026
Reference:
https://zhuanlan.zhihu.com/p/371257515
本文仅作个人学习记录, 如有侵权, 立即删除.