2

我想强制终结者在我的屏幕左上角打开。当我保存布局时,我的窗口定位正确。但是,每当我在计算机重新启动时打开终结者时,窗口都位于顶部附近,距左侧约 1.5 英寸。

我一直在搞乱配置文件,但无法弄清楚“位置”参数。例如,在[[[child0]]]

position = 36:32

和下[[[child1]]]

position = 834

谁能解释如何自定义这些参数?

系统信息:

  • Ubuntu 17.10,内核 4.13.0-43
  • 屏幕尺寸:1920x1080 像素,或 508x286 毫米
  • 终结者 v 1.91

终结者/配置:

[global_config]
  always_split_with_profile = True
  suppress_multiple_term_dialog = True
  title_transmit_bg_color = "#8ae234"
[keybindings]
[layouts]
  [[default]]
    [[[child0]]]
      fullscreen = False
      last_active_term = a69b1a79-eb9d-4c15-ac27-0502efc4c4f7
      last_active_window = True
      maximised = False
      order = 0
      parent = ""
      position = 36:32
      size = 808, 1014
      title = bp@bpenner: ~
      type = Window
    [[[child1]]]
      order = 0
      parent = child0
      position = 834
      ratio = 0.826560951437
      type = VPaned
    [[[terminal2]]]
      order = 0
      parent = child1
      profile = BP
      type = Terminal
      uuid = a69b1a79-eb9d-4c15-ac27-0502efc4c4f7
    [[[terminal3]]]
      order = 1
      parent = child1
      profile = BP
      type = Terminal
      uuid = 454d7873-3e55-49a4-af8c-6456f99d5e1e
[plugins]
[profiles]
  [[default]]
    cursor_color = "#aaaaaa"
4

2 回答 2

7

有几件事可以尝试。

以下对我有用:

  1. 打开终结者,然后根据需要调整其窗口的大小和位置。

  2. 在 Terminator 窗口的命令行区域中,右键单击然后选择Preferences

  3. Layouts选项卡中,展开Type / Name列表,选择Terminal1,然后单击Save

  4. 退出首选项对话框,然后关闭并重新打开终结者。

可以用来配置许多应用程序的显示属性的另一种方法是将--geometry=参数添加到应用程序的命令行。

  1. 在 shell 命令行中,键入man x以显示 X 窗口系统的手册页。

  2. 向下滚动到几何规格

于 2019-02-13T23:09:50.100 回答
5

我相信您的配置文件缺少第一个 [[[window0]]] 条目,该条目位于我的默认设置中的 [[[child]]] 条目之前。

这是我的配置设置,其中第一个窗口从左上角的位置 y=100 和 x=100 像素开始,其大小为 1000 X 700 像素。(注意制作这些条目所需的不同格式)

[global_config]

[keybindings]
[profiles]
[[default]]
audible_bell = True
cursor_color = "#aaaaaa"
[layouts]
[[default]]
[[[window0]]]
  type = Window
  parent = ""
  size = 1000 , 700
  position = 100:100
[[[child1]]]
  type = Terminal
  parent = window0


[plugins]

希望能帮助到你。

于 2019-03-19T20:26:07.243 回答