You are not logged in.
Pages: 1
Topic closed
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
I don't know that tool, but there is lxappearance for example.
Offline
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
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
What DE are you using?
Offline
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
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
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
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
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
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
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.
Online
Pages: 1
Topic closed