Xfce Forum

Sub domains
 

You are not logged in.

#1 2023-12-11 10:03:36

carloratm
Member
Registered: 2023-12-11
Posts: 7

[SOLVED] Change xfwm4 theme for a specific app

Hi all,

is it possible to change the  xfwm4 theme for a specific app?
I use a dark terminal theme and I would like the window decorations to be dark just for the terminal emulator.

Cheers!

Last edited by carloratm (2023-12-11 14:40:25)

Offline

#2 2023-12-11 14:30:39

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,052

Re: [SOLVED] Change xfwm4 theme for a specific app

Hello and welcome.

Unfortunately it is not possible for non-CSD use. Please see this closed bug report.

However, if you are using CSD, the application manages the titlebar area, in which case you could theme it differently if the application allows it.

So, for example in the case of xfce4-terminal:

GTK_CSD=1 GTK_THEME="Adwaita-dark" xfce4-terminal --disable-server

...the "--disable-server" is only required if you want to mix and match terminal windows or to just test to see if it works. If you want them all the same, you can omit that parameter and update the xfce4-terminal desktop file "Exec=" line to something like:

Exec=env GTK_CSD=1 GTK_THEME="Adwaita-dark" xfce4-terminal

...this might need further testing to get it right, plus your GTK theme needs to support.

Other apps or terminals may need further tweaking.


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#3 2023-12-11 14:40:13

carloratm
Member
Registered: 2023-12-11
Posts: 7

Re: [SOLVED] Change xfwm4 theme for a specific app

The solution you proposed fits well.

I will change my terminal emulator to xfce4-terminal

Thanks a lot

Offline

Board footer

Powered by FluxBB