如何在启动时为选项卡设置终结器的默认布局/配置文件?


9

我的终结者以日光化深色布局开始,但是当我打开新标签页时,它使用默认布局。如何在任何标签上将其晒黑?

[global_config]
  title_transmit_bg_color = "#d30102"
  focus = system
[keybindings]
[profiles]
  [[default]]
    # solarized-dark
    #palette = "#073642:#dc322f:#859900:#b58900:#268bd2:#d33682:#2aa198:#eee8d5:#002b36:#cb4b16:#586e75:#657b83:#839496:#6c71c4:#93a1a1:#fdf6e3"
    #foreground_color = "#eee8d5"
    #background_color = "#002b36"
    #cursor_color = "#eee8d5"

  [[solarized-dark]]
    palette = "#073642:#dc322f:#859900:#b58900:#268bd2:#d33682:#2aa198:#eee8d5:#002b36:#cb4b16:#586e75:#657b83:#839496:#6c71c4:#93a1a1:#fdf6e3"
    foreground_color = "#eee8d5"
    background_color = "#002b36"
    cursor_color = "#eee8d5"

  [[solarized-light]]
    palette = "#073642:#dc322f:#859900:#b58900:#268bd2:#d33682:#2aa198:#eee8d5:#002b36:#cb4b16:#586e75:#657b83:#839496:#6c71c4:#93a1a1:#fdf6e3"
    background_color = "#eee8d5"
    foreground_color = "#002b36"
    cursor_color = "#002b36"

[layouts]
  [[default]]
    [[[child1]]]
      type = Terminal
      parent = window0
      profile = solarized-dark
    [[[window0]]]
      type = Window
      parent = ""
[plugins]

我能问一下您是如何晒黑终止子的吗?
赛斯2013年

如果您使用启动器,请对该命令尝试以下操作:terminator --layout=dark-solarized

Answers:


6

由于第一个孩子的布局配置指定终止符,因此您的终止符以日光化深色布局开始。

[layouts]
  [[default]]
    [[[child1]]]
      ...
      profile = solarized-dark

如果您想将solarized-dark配置文件设为默认配置文件,请更改您的配置文件的默认配置(您可以将当前的solarized-dark配置文件复制/粘贴或重命名为默认配置文件)

[profiles]
  [[default]]
    # solarized-dark
    palette = "#073642:#dc322f:#859900:#b58900:#268bd2:#d33682:#2aa198:#eee8d5:#002b36:#cb4b16:#586e75:#657b83:#839496:#6c71c4:#93a1a1:#fdf6e3"
    foreground_color = "#eee8d5"
    background_color = "#002b36"
    cursor_color = "#eee8d5"

理想情况下,我们可以选择在默认区域中引用配置文件配置(而不是必须具有副本),但是无法使用AFAIK。

PS:我不喜欢这样的想法,always_split_with_profile = True因为它会强制继承在所有情况下都可能不需要的配置文件。


5

只要确保always_split_with_profile = True在您的配置文件中的[global_config]部分下即可。

这使得终止符在创建新的拆分和/或选项卡时继承选定的配置文件。

要从一开始就选择其他配置文件,请使用调用它terminator -p solarized-dark

但是要当心,因为在使用选项always_split_with_profile时不兑现--new-tab[1]。-p在这种情况下,您应该始终明确添加。

[1]:https//bugs.launchpad.net/terminator/+bug/1283178 “”

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.