You are not logged in.

#1 2023-05-07 19:51:48

tdtooke
Member
Registered: 2023-04-11
Posts: 245

[SOLVED]Linking gtk4 theme to ./config/gtk4.0

When I change themes I always have to manually link my gtk4 theme.  Never have that problem with gtk2 or 3.  Just gtk4 defies all my attempts to automate.  Maybe I'm not properly understanding something.  What I have tried is:

ln -sf "${THEME_DIR}/gtk-4.0/assets" "${HOME}/.config/gtk-4.0/assets"
ln -sf "${THEME_DIR}/gtk-4.0/gtk.css" "${HOME}/.config/gtk-4.0/gtk.css" 
ln -sf "${THEME_DIR}/gtk-4.0/gtk-dark.css" "${HOME}/.config/gtk-4.0/gtk-dark.css" 

This doens't do what I thought it should do.  Any ideas?

Last edited by tdtooke (2023-05-08 02:39:56)

Offline

#2 2023-05-08 01:03:02

wickedlester
Member
From: Texas, USA
Registered: 2004-07-22
Posts: 146

Re: [SOLVED]Linking gtk4 theme to ./config/gtk4.0

Unless you actually have the ${THEME_DIR} environment variable set somewhere you need to change that to the actual path of your theme directory. I put my themes in ${HOME}/.themes so I would use

ln -sf ~/.themes/theme_name_here/gtk-4.0/assets ~/.config/gtk-4.0/
ln -sf ~/.themes/theme_name_here/gtk-4.0/gtk.css ~/.config/gtk-4.0/
ln -sf ~/.themes/theme_name_here/gtk-4.0/gtk-dark.css ~/.config/gtk-4.0/

You don't have to link the gtk-2.0 or gtk-3.0 directory, just the gtk-4.0 directory.

Offline

#3 2023-05-08 02:33:50

tdtooke
Member
Registered: 2023-04-11
Posts: 245

Re: [SOLVED]Linking gtk4 theme to ./config/gtk4.0

That answers this.  From another place I managed to get the mistaken impression that this is how tweaks did it with gtk2 and gtk3.  It turns out I have no such environment variable.  No point in even making one if I still would have to manually set it to change themes.  Thanks.

Offline

Board footer

Powered by FluxBB