Home » Ubuntu系统入门教程 » Ubuntu系统入门教程-终端分屏软件Terminator

Ubuntu系统入门教程-终端分屏软件Terminator

说明

  • 本教程介绍如何在Ubuntu系统下安装和使用终端分屏软件-Terminator

  • 测试环境: Ubuntu 1604 and Ubuntu 1804

软件安装

  • 打开新终端,下载且安装Terminator
$ sudo add-apt-repository ppa:gnome-terminator
$ sudo apt-get update
$ sudo apt-get install terminator
  • 打开新终端,输入terminator;或者使用快捷键Ctrl+Shift+T
$ terminator
  • terminator出现后,点击左边侧边栏图标将其固定在侧边栏上

常用快捷键

快捷键含义
Ctrl+Shift+E垂直分割终端
Ctrl+Shift+O水平分割终端
Ctrl+Shift+F搜索
Ctrl+Shift+C复制
Ctrl+Shift+V粘贴
Ctrl+Shift+W关闭当前终端
Ctrl+Shift+Q退出当前Terminator窗口
Ctrl+Shift+T打开新的标签页
Ctrl+Shift+I打开新的Terminator窗口
Ctrl+Shift+X切换只显示当前终端同时隐藏其他终端
Ctrl+Shift+G清屏
Ctrl+Shift+S隐藏/显示滚动条
Ctrl+Shift+PgUp/PgDn切换标签页
Shift+Ctrl+Tab切换到当前页面的下一个终端
Shift+PgUp/PgDn在当前终端里上下翻页
  • 当创建多个终端且各个终端都凌乱分布时,使用Shift+Super+鼠标双击点击终端相隔的任一分隔栏就可以重新将各个终端规则整齐地分布
Shift+Super+double-click

Preferences Window

  • Terminator支持自定义的主题风格布局,点击鼠标右键->Preference进入到布局设置

请输入图片描述

  • 具体细致的设置解释可以在文章末的参考资料上找到官方的说明

  • 此处介绍一种直接修改Terminator的默认配置文件的配置主题的方法

$ vim ~/.config/terminator/config
//配置文件复制进去
  • 以下是从网上找到的配置例子

  • 主题示例1

[global_config]
  handle_size = -3
  enabled_plugins = CustomCommandsMenu, LaunchpadCodeURLHandler, APTURLHandler, LaunchpadBugURLHandler
  title_transmit_fg_color = "#000000"
  suppress_multiple_term_dialog = True
  title_transmit_bg_color = "#3e3838"
  inactive_color_offset = 1.0
[keybindings]
[profiles]
  [[default]]
    palette = "#000000:#5a8e1c:#2d5f5f:#cdcd00:#1e90ff:#cd00cd:#00cdcd:#e5e5e5:#4c4c4c:#868e09:#00ff00:#ffff00:#4682b4:#ff00ff:#00ffff:#ffffff"
    background_image = ""
    background_darkness = 0.68
    scrollback_lines = 3000
    background_type = transparent
    use_system_font = False
    scroll_background = False
    show_titlebar = False
    cursor_shape = ibeam
    font = Liberation Mono 12
    background_color = "#0e2424"
    foreground_color = "#e8e8e8"
[layouts]
  [[default]]
    [[[child1]]]
      type = Terminal
      parent = window0
      profile = default
    [[[window0]]]
      type = Window
      parent = ""
      size = 925, 570
[plugins]

请输入图片描述

  • 主题示例2
[plugins]
[profiles]
  [[default]]
    background_color = "#3f3f3f"
    background_darkness = 0.92
    background_type = transparent
    copy_on_selection = True
    cursor_color = "#dcdcdc"
    foreground_color = "#dcdcdc"
    palette = "#3f3f3f:#cc9393:#7f9f7f:#e3ceab:#dfaf8f:#cc9393:#8cd0d3:#dcdccc:#3f3f3f:#cc9393:#7f9f7f:#e3ceab:#dfaf8f:#cc9393:#8cd0d3:#dcdccc"
    show_titlebar = False
  [[Zenburn]]
    background_color = "#3f3f3f"
    background_type = transparent
    copy_on_selection = True
    cursor_color = "#73635a"
    foreground_color = "#dcdccc"
    palette = "#4d4d4d:#705050:#60b48a:#f0dfaf:#506070:#dc8cc3:#8cd0d3:#dcdccc:#709080:#dca3a3:#c3bf9f:#e0cf9f:#94bff3:#ec93d3:#93e0e3:#ffffff"
    show_titlebar = False

请输入图片描述

参考资料

纠错,疑问,交流: 请进入讨论区点击加入Q群

获取最新文章: 扫一扫右上角的二维码加入“创客智造”公众号


标签: ubuntu系统入门教程