The i3 FAQ has migrated to https://github.com/i3/i3/discussions. All content here is read-only.
Ask Your Question
2

How to configure GTK theme support?

asked Jun 11 '12

What is the simplest way to configure minimal support for GTK themes, so GTK 2/3 applications are rendered nicely under i3wm?

I have found that the i3 article on the Arch Wiki suggests:

For gnome users, see i3-gnome in AUR to add a i3 gnome session (gtk theme, gnome-keyring, notifications, gnome online accounts).

But, I don't need or want to install the GNOME packages, so I'd like to setup GTK themes with minimal set of packages.

Comments

You can read an article about gtk in the Arch Wiki too. Here it is. https://wiki.archlinux.org/index.php/GTK#Configuration_programs.

acgtyrant gravatar imageacgtyrant (Oct 1 '13)edit

4 answers

Sort by » oldest newest most voted
4

answered Jun 11 '12

fernandotcl gravatar image

For GTK+ 2.x, ~/.gtkrc-2.0. For instance:

gtk-theme-name = "Clearlooks"
gtk-font-name = "Sans 8"

For GTK+ 3.x, ~/.config/gtk-3.0/settings.ini:

[Settings]
gtk-theme-name = Adwaita
gtk-font-name = Sans 8

Comments

Adding "gtk-icon-theme-name =" is also possible. If you want a nicer icon theme than the default.

Almehdin gravatar imageAlmehdin (Jun 27 '13)edit
2

answered Dec 23 '12

jP_wanN gravatar image

If you've got other gnome-based sessions (Gnome, Unity) where you have no problems, just add

exec gnome-settings-daemon

to your i3 config ;)

This also adds support for some media keyboard keys and other gnome settings.

Comments

As of Gnome 3.8 gnome-settings-daemon does not handle media keys and wallpaper anymore, possibly some other stuff was removed also.

Klaas gravatar imageKlaas (Apr 24 '13)edit
0

answered Feb 22 '15

Nikratio gravatar image

I'd suggest to run an XSettings daemon like xsettingsd. Then in your ~/.xsettingsrc put something like:

Gtk/ButtonImages 1
Gtk/CanChangeAccels 1
Gtk/CursorThemeName "default"
Gtk/CursorThemeSize 0
Gtk/EnableEventSounds 0
Gtk/EnableInputFeedbackSounds 0
Gtk/FontName "Sans 10"
Gtk/IconThemeName "oxygen"
Gtk/MenuBarAccel "F10"
Gtk/MenuImages 1
Gtk/ToolbarIconSize 3
Gtk/ToolbarStyle "icons"
Xft/Antialias 1
Xft/DPI 102400
Xft/Hinting 1
Xft/HintStyle "hintslight"
Xft/RGBA "rgb"
0

answered Feb 25 '15

Ruben G gravatar image

I've found a nice i3 setup-history article [1] with a very good suggestion. Install lxappearance, as the author says it has no dependencies and is a very nice GUI to do this setup.

[1] blog.tunnelshade.in/2014/05/making-i3-beautiful.html

Question Tools

1 follower

Stats

Asked: Jun 11 '12

Seen: 24,109 times

Last updated: Feb 25