You are not logged in.

#1 2025-05-20 19:19:06

bomas
Member
Registered: 2025-05-19
Posts: 2

[SOLVED] Confusion with setting GTK theme

I am trying to figure out gtk themes for my desktop (sddm and i3) and have some questions about how gtk theme settings work.

When setting a global theme does GSettings take precedence over settings.ini files only for gnome applications or does that apply for all gtk applications?

For applications which depend on libadwaita, I set the GTK_THEME envirnoment variable in ~/.bash_profile to try to force a different theme, as suggested in https://wiki.archlinux.org/title/GTK#GTK_3_and_GTK_4. Will this override settings.ini and gsettings for all GTK applications?

My preference is to have all the configuration in dotfiles in my home directory. However, I am also using gvfs for network shares and auto mounting, which depends on gsettings-desktop-schemas, and I don't want to change that if I don't have to. Is there a way to ignore gsettings entirely and have gtk only use settings.ini?

I am assuming all of this only applies to gtk3/gtk4 and not gtk2, which I have had no issues with.

Last edited by bomas (2025-05-23 18:42:40)

Offline

#2 2025-05-20 19:57:18

eriefisher
Member
Registered: 2025-02-01
Posts: 28

Re: [SOLVED] Confusion with setting GTK theme

I think for system wide setting you can use /etc/environment. As root or sudo edit the file and add......

GTK_THEME=Adwaita-dark

Restart and you should be good to go as long as it's a GTK application.


I Am Canadian!

Offline

#3 2025-05-23 18:34:54

bomas
Member
Registered: 2025-05-19
Posts: 2

Re: [SOLVED] Confusion with setting GTK theme

Thanks, that looks like it works. Also found these docs, which were helpful. https://docs.gtk.org/gtk3/class.Settings.html

Offline

Board footer

Powered by FluxBB