Xfce Forum

Sub domains
 

You are not logged in.

#1 2020-10-20 11:38:36

860lacov
Member
Registered: 2020-05-10
Posts: 13

[SOLVED] How to export current color theme of xfce4 terminal?

How to export current xfce4-terminal color profile?

I copied into my

/usr/share/xfce4/terminal/colorschemes

Kali.theme form Kali linux.
I know that I can edit hex values inside to adjust it but it's a lot of testing.
It seems that it's possible to change terminal colors in terminal settings but if I change profile o another one my changes are not being saved.

Is it possible to export current color theme to file with the name I choose?

Last edited by 860lacov (2020-10-26 20:42:13)

Offline

#2 2020-10-20 12:07:50

ToZ
Moderator
From: Canada
Registered: 2011-06-02
Posts: 8,480

Re: [SOLVED] How to export current color theme of xfce4 terminal?

Any changes you make to the colors in the settings dialog will be saved in ~/.config/xfce4/terminal/terminalrc in a ColorPalette line. You can copy and save that line.

Offline

#3 2020-10-20 13:06:33

860lacov
Member
Registered: 2020-05-10
Posts: 13

Re: [SOLVED] How to export current color theme of xfce4 terminal?

Thank you.
Colors in this file are in RGB values. Can I use it to make my own .theme file? Do I need to convert them to hex values?

Offline

#4 2020-10-20 17:07:51

ToZ
Moderator
From: Canada
Registered: 2011-06-02
Posts: 8,480

Re: [SOLVED] How to export current color theme of xfce4 terminal?

You can use rgb values in colorscheme themes. For example, the tango theme minus the translations:

[Scheme]
Name=Tango
ColorPalette=#000000;#cc0000;#4e9a06;#c4a000;#3465a4;#75507b;#06989a;#d3d7cf;#555753;#ef2929;#8ae234;#fce94f;#739fcf;#ad7fa8;#34e2e2;#eeeeec

Offline

#5 2022-01-02 17:27:39

KBar
Member
Registered: 2021-11-05
Posts: 174

Re: [SOLVED] How to export current color theme of xfce4 terminal?

Hey, ToZ. Sorry, I didn't want to open a new thread just to ask you this little question. If I enable Use system theme colors for text and background in the preferences, where do they come from? I can't seem to launch it with GtkInspector.

I know there is the easy way, but I'm just curious how it works. Thanks.

Offline

#6 2022-01-02 18:22:39

ToZ
Moderator
From: Canada
Registered: 2011-06-02
Posts: 8,480

Re: [SOLVED] How to export current color theme of xfce4 terminal?

KBar wrote:

Hey, ToZ. Sorry, I didn't want to open a new thread just to ask you this little question. If I enable Use system theme colors for text and background in the preferences, where do they come from? I can't seem to launch it with GtkInspector.

I know there is the easy way, but I'm just curious how it works. Thanks.

https://git.xfce.org/apps/xfce4-termina … en.c#n1113
It uses the GTK theme's default foreground and background colors.

Offline

Board footer

Powered by FluxBB