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 2012-06-11 01:00:07 +0000

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.

edit retag flag offensive close merge delete

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 ( 2013-10-01 14:58:36 +0000 )edit

4 answers

Sort by ยป oldest newest most voted
4

answered 2012-06-11 01:10:10 +0000

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
edit flag offensive delete link more

Comments

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

Almehdin gravatar imageAlmehdin ( 2013-06-27 02:04:29 +0000 )edit
2

answered 2012-12-23 12:57:40 +0000

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.

edit flag offensive delete link more

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 ( 2013-04-24 23:03:54 +0000 )edit
0

answered 2015-02-22 20:27:55 +0000

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"
edit flag offensive delete link more
0

answered 2015-02-25 13:08:09 +0000

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

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2012-06-11 01:00:07 +0000

Seen: 24,109 times

Last updated: Feb 25