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

How to use Qt Oxygen Theme in i3?

asked 2013-08-21 12:45:11 +0000

rbox gravatar image

How can i use KDE Oxygen Theme in i3 for Qt Applications?

qtconfig-qt4 won't work (it's show only old themes)

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
1

answered 2015-01-17 14:45:17 +0000

this post is marked as community wiki

This post is a wiki. Anyone with karma >100 is welcome to improve it.

After I set these environment variables clementine changed the theme to oxygen:

export GTK_RC_FILES="/etc/gtk/gtkrc:$HOME/.gtkrc:$HOME/.kde4/share/config/gtkrc"
export GTK2_RC_FILES="/etc/gtk-2.0/gtkrc:$HOME/.gtkrc-2.0:$HOME/.kde4/share/config/gtkrc-2.0"
export QT_PLUGIN_PATH="$HOME/.kde4/lib/kde4/plugins/:/usr/lib/kde4/plugins/"

I edit ~/.profile to changes it permanent:

if [ "$XDG_CURRENT_DESKTOP" == "i3" ] ; then

export GTK_RC_FILES="/etc/gtk/gtkrc:$HOME/.gtkrc:$HOME/.kde4/share/config/gtkrc"
export GTK2_RC_FILES="/etc/gtk-2.0/gtkrc:$HOME/.gtkrc-2.0:$HOME/.kde4/share/config/gtkrc-2.0"
export QT_PLUGIN_PATH="$HOME/.kde4/lib/kde4/plugins/:/usr/lib/kde4/plugins/"
fi

For gtk2-Applications:

vim ~/.gtkrc-2.0

include "/usr/share/themes/oxygen-gtk/gtk-2.0/gtkrc"

style "user-font" {
        font_name = "Sans Serif  11"

}

widget_class "*" style "user-font"

gtk-font-name="Sans Serif  11"

include "/home/$USER/.gtkrc.mine"

For gtk3-Applications: since gtk3-16+ oxygen is no longer supported and doesn't work, so you can't use it, but to change the theme you can edit ~/.config/gtk-3.0/settings.ini, for more information see: wiki.archlinux.org/index.php/Uniform_Look_for_Qt_and_GTK_Applications
wiki.archlinux.org/index.php/GTK%2B

edit flag offensive delete link more
1

answered 2014-09-15 05:57:34 +0000

Michael Rose gravatar image

Having a full kde installation I can run systemsettings and configure it under application appearance. Probably not the most helpful answer.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2013-08-21 12:45:11 +0000

Seen: 1,352 times

Last updated: Apr 13