Gtk2 and Gtk3 for non-Gnome users

| 分类 Utility  | 标签 gnome 

I’m over gnome. Even when I was a gnome user I did minimal gnome installs. However, I like many still use many gtk applications. Most of the applications I use are gtk applications. However, I don’t use a DE, I either use xfce4.8 or compiz as a standalone wm.

However, I still want my desktop to look nice. Now with some of the gtk applications I use adopting gtk3, such as Nautilus and Gedit, I want my gtk2 and gtk3 apps to use the sameicon and gtk theme.

The first step to acheiving this is using icon and gtk themes that support both gtk2 andgtk3. I went over to gnome-looks and selected the “Zukitwo” theme.

To change gtk themes without installing an application is rather simple. However, there are two seperate files for gtk2 and gtk3 which you must edit. Below are examples of the two files on my system.


## ~/.gtkrc-2.0
## Edit GTK2 Theme Settings
gtk-<b style="color:black;background-color:#99ff99">icon</b>-theme-name="Tango"
gtk-font-name="Zekton 10"









## ~/.config/gtk-3.0/settings.ini
## Edit <b style="color:black;background-color:#ffff66">GTK3</b> Theme Settings
## Create this File if it doesn't already exist
gtk-theme-name = Zukitwo-Dark
gtk-<b style="color:black;background-color:#99ff99">icon</b>-theme-name = Tango
gtk-fallback-<b style="color:black;background-color:#99ff99">icon</b>-theme = gnome
# next option is applicable only if selected theme supports it
gtk-application-prefer-dark-theme = true
# set font name and dimension
gtk-font-name = Zekton 10 



上一篇     下一篇