You are not logged in.

#1 2015-06-29 10:58:35

revenant
Member
From: Lithuania
Registered: 2009-09-18
Posts: 19

GTK3 theme switcher - is there one available?

I have been looking for a tool similar to gtk-theme-switch2 - i.e., just a simple program to switch GTK3 themes. However, I can find nothing in the forums, AUR or the internet. Does such a program even exist?

Offline

#2 2015-06-29 12:26:15

Steef435
Member
Registered: 2013-08-29
Posts: 577
Website

Re: GTK3 theme switcher - is there one available?

I don't know that tool, but there is lxappearance for example.

Offline

#3 2015-06-29 12:30:23

revenant
Member
From: Lithuania
Registered: 2009-09-18
Posts: 19

Re: GTK3 theme switcher - is there one available?

Unless I don't know how to use it, lxappearance only allows to manage GTK2 themes, and there is already gtk-theme-switch2 for that purpose. I care specifically about managing GTK3 styles

Offline

#4 2015-06-29 13:14:37

Chazza
Wiki Maintainer
Registered: 2013-06-02
Posts: 506

Re: GTK3 theme switcher - is there one available?

According to the Wiki, GTK+ 3 themes can be set by writing to ~/.config/gtk-3.0/settings.ini
see https://wiki.archlinux.org/index.php/GTK%2B#GTK.2B_3.x

So, if there isn't a theme switcher, it probably wouldn't be too hard to hack some sort of script together to write to that file.

But are you sure LXAppearance doesn't work? I definitely remember using it to select the Adwaita theme and that's a mixed GTK+2/GTK+ 3 theme.

Edit: Above wasn't quite accurate. As far as I can tell, the situation is that the theme for GTK+ 3 applications can be set in the ~/.config/gtk-3.0/settings.ini file and the theme for GTK+ 2 applications can be set in the ~/.gtkrc-2.0 file. A theme switcher would need to write to both of the files to set the theme consistently for all GTK+ applications.

Last edited by Chazza (2015-06-29 13:29:28)

Offline

#5 2015-06-29 13:35:09

Malkymder
Member
Registered: 2015-05-13
Posts: 258

Re: GTK3 theme switcher - is there one available?

What DE are you using?

Offline

#6 2015-06-29 15:23:33

justasug
Member
Registered: 2014-08-03
Posts: 172

Re: GTK3 theme switcher - is there one available?

I use LXappearance and it's setting GTK3 themes just fine. Works for both GTK2 and GTK3, so you probably don't even need gtk-theme-switch2.

Offline

#7 2015-06-29 21:48:32

Steef435
Member
Registered: 2013-08-29
Posts: 577
Website

Re: GTK3 theme switcher - is there one available?

revenant wrote:

Unless I don't know how to use it, lxappearance only allows to manage GTK2 themes, and there is already gtk-theme-switch2 for that purpose. I care specifically about managing GTK3 styles

AFAIK it manages both at the same time, it's not possible to set a team *just* for GTK2 or GTK3. Is that what you want? In that case you could opt for Chazza's solution, or see if you can do it through whatever system GTK3 uses to manage configuration via D-Bus (I think there is one). Maybe this is a lead: http://www.fandigital.com/2012/06/chang … gnome.html

Offline

#8 2015-06-29 22:08:44

Chazza
Wiki Maintainer
Registered: 2013-06-02
Posts: 506

Re: GTK3 theme switcher - is there one available?

I was a bit bored so I hacked together a Python script for writing to those two files - it just needs python and tk to run. If you want to try it out, see: https://github.com/charlesbos/my-script … tktheme.py

Don't expect miracles.

Offline

#9 2015-06-30 07:59:43

revenant
Member
From: Lithuania
Registered: 2009-09-18
Posts: 19

Re: GTK3 theme switcher - is there one available?

I use dwm. That's why I want a simple program - I know big DEs have tools to switch widget styles, but I don't want to pull in all those heavy dependencies. If there is gtk-theme-switch2, why can't there be a similar tool for GTK3?

Tried lxappearance one more time and it really doesn't even see GTK3 themes (I had some installed). Changing GTK2 themes with it does not change the default (Adwaita) GTK3 theme. Maybe I need to install some package?

Screw gconf, even if it would get the job done. Not even once.

And kudos to Chazza for the script, but it would still be nice to have a packaged program to do the job.

Offline

#10 2015-06-30 09:14:52

Alad
Wiki Admin/IRC Op
From: Bagelstan
Registered: 2014-05-04
Posts: 2,418
Website

Re: GTK3 theme switcher - is there one available?

I'd just go with an XSETTINGS daemon, it sets the theme for su'd X applications as well (gksudo) and has some other nice features.

https://aur4.archlinux.org/packages/xsettingsd-git/

n.b. you can always package scripts yourself. Or simply put them to ~/.local/bin.

Last edited by Alad (2015-06-30 09:17:30)


Mods are just community members who have the occasionally necessary option to move threads around and edit posts. -- Trilby

Offline

#11 2017-08-18 10:43:09

ziongate
Member
Registered: 2017-08-18
Posts: 10

Re: GTK3 theme switcher - is there one available?

Hi,
if of any help, i do:
cd /usr/share/themes/  and

╭─angelo at jerusalem in /usr/share/themes using ‹› 17-08-18 - 12:36:06
╰─○ find . -name gtk-3.0
./Breeze/gtk-3.0
./Emacs/gtk-3.0
./Bluebird/gtk-3.0
./Adwaita-dark/gtk-3.0
./Adwaita/gtk-3.0
./HighContrast/gtk-3.0
./Default/gtk-3.0
./Greybird/gtk-3.0
./Albatross/gtk-3.0
./Breeze-Dark/gtk-3.0
./Blackbird/gtk-3.0

use then lxappearance to set one of these gtk-3 themes (all the other in the list are gtk-2). It works.

Offline

#12 2017-08-18 10:47:40

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 23,354

Re: GTK3 theme switcher - is there one available?

Thanks for sharing, however in the context of the thread it is already established that lxappearance is intended to be avoided and this thread is 2 years old, please don't necrobump old threads

https://wiki.archlinux.org/index.php/Co … bumping.22

Closing.

Offline

Board footer

Powered by FluxBB