ctrl+alt+t 打開終端
運行命令
sudo apt-get install terminator
安裝終端程序terminator,安裝完畢后按ctrl+alt+t打開終端如下圖所示
這個終端程序可以分屏,常用操作快捷鍵如下:
Ctrl+Shift+O Split terminals Horizontally.(上下開新窗口) Ctrl+Shift+E Split terminals Vertically.(垂直開新窗口) Ctrl+Shift+Right Move parent dragbar Right.(放大當前窗口 向右) Ctrl+Shift+Left Move parent dragbar Left. Ctrl+Shift+Up Move parent dragbar Up. Ctrl+Shift+Down Move parent dragbar Down. Ctrl+Shift+W Close the current terminal. Alt+Up Move to the terminal above the current one.(切換當前窗口) Alt+Down Move to the terminal below the current one. Alt+Left Move to the terminal left of the current one. Alt+Right Move to the terminal right of the current one. Ctrl+Shift+S Hide/Show Scrollbar.(隱藏滾動條) Ctrl+Shift+F Search within terminal scrollback Ctrl+Shift+N or Ctrl+Tab Move to next terminal within the same tab, use Ctrl+PageDown to move to the next tab. If cycle_term_tab is False, cycle within the same tab will be disabled Ctrl+Shift+P or Ctrl+Shift+Tab Move to previous terminal within the same tab, use Ctrl+PageUp to move to the previous tab. If cycle_term_tab is False, cycle within the same tab will be disabled Ctrl+Shift+C Copy selected text to clipboard Ctrl+Shift+V Paste clipboard text Ctrl+Shift+Q Quits Terminator Ctrl+Shift+X (最大化當前窗口) Toggle between showing all terminals and only showing the current one (maximise). Ctrl+Shift+Z Toggle between showing all terminals and only showing a scaled version of the current one (zoom). Ctrl+Shift+T Open new tab Ctrl+Shift+Alt+T Open new tab at root level, if using extreme_tabs. Ctrl+PageDown Move to next Tab Ctrl+PageUp Move to previous Tab Ctrl+Shift+PageDown Swap tab position with next Tab Ctrl+Shift+PageUp Swap tab position with previous Tab Ctrl+Shift+F Open buffer search bar to find substrings in the scrollback buffer. Hit Escape to cancel. Ctrl+Plus (+) Increase font size. Note: this may require you to press shift, depending on your keyboard Ctrl+Minus (-) Decrease font size. Note: this may require you to press shift, depending on your keyboard Ctrl+Zero (0) Restore font size to original setting. F11 Toggle fullscreen(放大當前窗口) Ctrl+Shift+R Reset terminal state Ctrl+Shift+G Reset terminal state and clear window
因為初始化界面不太美觀,可以設置配置文件,方法如下:
cd ~/.config/terminator/
sudo vim config
如果報錯,Unable to open ~/.config/terminator/config ,解決方法:
打開terminator終端,然后右擊終端的黑色背景,選擇preference->layouts->add,關閉該窗口即可找到config文件。
修改配置文件,我的配置文件如下:
[global_config] [keybindings] [profiles] [[default]] use_system_font = False # 是否啟用系統字體 login_shell = True background_darkness = 0.92 # 背景顏色 background_type = transparent background_image = None cursor_color = "#3036ec" # 光標顏色 foreground_color = "#00ff00" show_titlebar = False # 不顯示標題欄,也就是 terminator 中那個默認的紅色的標題欄 custom_command = tmux font = Ubuntu Mono 15 # 字體設置,后面的數字表示字體大小 [layouts] [[default]] [[[child1]]] type = Terminal parent = window0 [[[window0]]] type = Window parent = "" [plugins]
最后效果如下: