I want to bind a shortcut to change my solarized color schemes (dark and light). For this purpose I need to know a command for terminal to change its color scheme, but I haven't found such one and I have to go time after time to preferences menu and switch preseted schemes. Is there any way to make such kind of switcher for terminal color schemes?
Ubuntu – Change color scheme for xfce4 terminal manually
colorsthemesxfcexfce4-terminal
Best Answer
XFCE4 terminal stores user preferences in
$XDG_CONFIG_HOME/xfce4/terminal/terminalrc
(typically,~/.config/xfce4/terminal/terminalrc
- might not exist if you haven't changed any preferences). I found that XFCE4 Terminal watches this file and reloads settings when it changes, so you can write to this file to change settings.However, there is no single entry you can edit to change the colours. The various palettes are actually a set of settings. For example:
And
terminalrc
will look like:As can be seen, there's no way to easily identify which palette the colours came from.
Scripting this doesn't seem safe, but here's an inefficient attempt:
Copy this to somewhere in your
PATH
(for example,~/bin/xfce-color-switch
). Then:You'll have to remember colorscheme names for this, but I'll add instructions on how to add tab-completion once I figure them out.