1、安裝
Terminator最大的特點就是可以在一個窗口中打開多個終端
sudo apt-get install terminator
![]()
2、快捷鍵
Ctrl+Shift+E 垂直分割窗口
Ctrl+Shift+O 水平分割窗口 F11 全屏
Ctrl+Shift+C 復制
Ctrl+Shift+V 粘貼
Ctrl+Shift+N 或者 Ctrl+Tab 在分割的各窗口之間切換
Ctrl+Shift+X 將分割的某一個窗口放大至全屏使用
Ctrl+Shift+Z 從放大至全屏的某一窗口回到多窗格界面
![]()
3、優化配置
初始界面不太美觀
修改配置文件
sudo vim ~/.config/terminator/config
![]()
我的配置如下
[global_config] geometry_hinting = False handle_size = 1 inactive_color_offset = 1.0 title_font = mry_KacstQurn Bold 11 title_hide_sizetext = True [keybindings] [layouts] [[default]] [[[child1]]] parent = window0 profile = default type = Terminal [[[window0]]] parent = "" type = Window [plugins] [profiles] [[default]] background_darkness = 0.76 background_image = None background_type = transparent cursor_color = "#3036ec" custom_command = tmux font = Ubuntu Mono 13 foreground_color = "#ffffff" login_shell = True show_titlebar = False use_system_font = False
原來的:
[global_config] handle_size = 1 [keybindings] [layouts] [[default]] [[[child1]]] parent = window0 type = Terminal [[[window0]]] parent = "" type = Window [plugins] [profiles] [[default]] background_image = None
![]()
5.更改 Ubuntu 默認終端工具
在 Ubuntu 系統中默認使用的終端工具是 gnome-terminal,而當我們安裝完 Terminator 之后,Ubuntu 系統中默認采用的終端工具就變成了 Terminator,可以借助dconf-tools 工具來進行重新設置。
安裝dconf-toolssudo
apt-get install dconf-tools
安裝成功后,終端中輸入命令 “dconf-editor” 來打開這個工具,然后從左邊的的菜單欄中按照下面的步驟依次進入指定的菜單項:org > gnome > desktop > applications > terminal
此時,我們可以看到使用 Terminator 作為默認終端工具的配置為:
exec x-terminal-emulatore
xec-arg -e

如果想使用 gnome-terminal 為默認終端工具的話,就將上面的配置更改為:
exec gnome-terminal
exec-arg -x
保存退出之后,使用快捷鍵 “Ctrl + Alt + T” 啟動一個終端時,這時啟動起來的就是 gnome-terminal 工具了!
