ubuntu terminator 配置

本文介绍了如何在Ubuntu系统中安装和配置Terminator,通过编辑配置文件实现打开时自动创建四个终端窗口的布局,每个窗口具有独立的大小和位置,方便进行多任务操作。

1.terminator 安装

sudo apt-get install terminator

2. terminator 配置

编辑~/.config/terminator/config文件,写入一下内容,效果为,一次性打开4个终端。

[global_config]
  enabled_plugins = CustomCommandsMenu, InactivityWatch, TestPlugin, ActivityWatch, TerminalShot, LaunchpadCodeURLHandler, APTURLHandler, Logger, MavenPluginURLHandler, LaunchpadBugURLHandler
  geometry_hinting = True
  title_hide_sizetext = True
[keybindings]
[layouts]
  [[default]]
    [[[child0]]]
      fullscreen = False
      last_active_term = 8ad11f85-caf2-440b-9dea-182d77e54289
      last_active_window = True
      maximised = True
      order = 0
      parent = ""
      position = 1920:27
      size = 1853, 1025
      title = zack@zack-ThinkPad-T490: ~
      type = Window
    [[[child1]]]
      order = 0
      parent = child0
      position = 510
      ratio = 0.5
      type = VPaned
    [[[child2]]]
      order = 0
      parent = child1
      position = 924
      ratio = 0.5
      type = HPaned
    [[[child5]]]
      order = 1
      parent = child1
      position = 924
      ratio = 0.5
      type = HPaned
    [[[terminal3]]]
      order = 0
      parent = child2
      profile = default
      type = Terminal
      uuid = 8ad11f85-caf2-440b-9dea-182d77e54289
    [[[terminal4]]]
      order = 1
      parent = child2
      profile = default
      type = Terminal
      uuid = ed938b1e-786b-4af1-94d1-925bd41b0d7e
    [[[terminal6]]]
      order = 0
      parent = child5
      profile = default
      type = Terminal
      uuid = 051e6538-1170-4638-b970-b1b3afad8b3a
    [[[terminal7]]]
      order = 1
      parent = child5
      profile = default
      type = Terminal
      uuid = f9e85175-80f5-4ff0-9fd8-22b0c68eab2b
  [[New Layout]]
    [[[child0]]]
      fullscreen = False
      last_active_term = 8ad11f85-caf2-440b-9dea-182d77e54289
      last_active_window = True
      maximised = True
      order = 0
      parent = ""
      position = 1920:27
      size = 1853, 1025
      title = zack@zack-ThinkPad-T490: ~
      type = Window
    [[[child1]]]
      order = 0
      parent = child0
      position = 510
      ratio = 0.5
      type = VPaned
    [[[child2]]]
      order = 0
      parent = child1
      position = 924
      ratio = 0.5
      type = HPaned
    [[[child5]]]
      order = 1
      parent = child1
      position = 924
      ratio = 0.5
      type = HPaned
    [[[terminal3]]]
      order = 0
      parent = child2
      profile = default
      type = Terminal
      uuid = 8ad11f85-caf2-440b-9dea-182d77e54289
    [[[terminal4]]]
      order = 1
      parent = child2
      profile = default
      type = Terminal
      uuid = ed938b1e-786b-4af1-94d1-925bd41b0d7e
    [[[terminal6]]]
      order = 0
      parent = child5
      profile = default
      type = Terminal
      uuid = 051e6538-1170-4638-b970-b1b3afad8b3a
    [[[terminal7]]]
      order = 1
      parent = child5
      profile = default
      type = Terminal
      uuid = f9e85175-80f5-4ff0-9fd8-22b0c68eab2b
[plugins]
[profiles]
  [[default]]
    cursor_color = "#aaaaaa"
    foreground_color = "#ffffff"
    scrollback_lines = 30000
### UbuntuTerminator 终端的配置与使用 #### 安装 Terminator 为了在 Ubuntu 上安装 Terminator,需更新软件包列表并安装该应用程序: ```bash sudo apt-get update sudo apt-get install terminator ``` 此命令序列确保获取最新的软件包信息,并安装最新版本的 Terminator[^1]。 #### 配置文件创建 初次启动 Terminator 后,默认情况下可能不存在配置文件。可以通过两种方式之一来创建配置文件 `~/.config/terminator/config`: - 手动创建上述路径下的 config 文件; - 或者,在 Terminator 的任意空白区域点击鼠标右键选择 preferences 进行简单设置,这会自动生 成所需的配置文件[^2]。 #### 自定义配置示例 下面是一个典型的 `.config/terminator/config` 文件的内容片段,展示了如何调整全局选项、快捷键绑定以及终端外观等方面: ```ini [global_config] putty_paste_style = False borderless = False [keybindings] zoom_in = <Ctrl>plus zoon_out = <Ctrl>minus [profiles] [[default]] cursor_color = "#aaaaaa" background_color = '#c7edcc' background_darkness = 0.2 foreground_color = '#000000' [layouts] [[default]] [[[window0]]] type = Window parent = "" [[[child1]]] type = Terminal parent = window0 [plugins] ``` 这段配置设置了背景颜色为浅绿色 (`#c7edcc`) 和前景文字颜色为黑色 (`#000000`) ,同时启用了 Putty 风格粘贴模式关闭状态以及其他视觉效果和行为设定[^3]。 通过编辑这个文件中的不同部分,可以根据个人喜好定制 Terminator 的工作环境。
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

Zack_Liu

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值