You are not logged in.

#1 2013-06-03 19:07:00

nourathar
Member
From: Bxl
Registered: 2013-04-26
Posts: 112

oxygen in tiling WM

in the last few days I have been playing around with i3 and I have come to appreciate the joys of a tiling WM.

Coming from KDE I do find it it a bit hard to accept the default look of both Gtk and Qt though, so I feel I had to add a large chunk of KDE back in to get my preferred colours and widgets back for those windows that need it. In order to get my beloved Oxygen theme to work well on both Qt and Gtk, the only way I found was to install the kdebase-workspace package and use the systemsettings app in there. That means that I effectively had to install the base kde packages, so my whole system is not as snappy as it could be.

I have two questions:

- is there a way to get the Oxygen theme to work in a way that depends less on KDE, resulting in a much lighter system ?
I tried qtconfig-qt4 but that doesn't recognize Oxygen, (only the standard super-ugly default themes). For Gtk I looked at lxappearance, that makes it possible to choose the Oxygen-gtk theme, but doesn't enable the customization of colours. Also I looked at the Trolltech.conf file that has some Qt settings in it (most of which seem to be ignored by KDE). I saw some threads on this, but most concluded there is no way to detach Oxygen from KDE more. Is that true ?

- now both GTK and Qt apps look great, but ironically my own Qt-interfaces (I write software for my own use in Python) look awful: the colours are the ones I've customized, but the widgets look like from the ClearLooks theme, not Oxygen. When I run my code on another, purely KDE system there is no problem. How can I cure this ? What magic do the KDE-apps do that i3 doesn't ? I can even run dolphin and that looks totally fine. Is there some environment variable I have to set for my python code to use Oxygen ? How can I check this ?

pointers very welcome..

J.

Last edited by nourathar (2013-06-03 19:09:22)

Offline

#2 2013-06-03 20:58:24

teateawhy
Member
From: GER
Registered: 2012-03-05
Posts: 1,138
Website

Re: oxygen in tiling WM

I also use i3, and i know of these two configuration files:

~/.config/gtk-3.0/settings.ini
~/.gtkrc-2.0

They allow to set the theme without any extra package, probably you can do the same for qt.

Offline

#3 2013-06-03 23:09:34

nourathar
Member
From: Bxl
Registered: 2013-04-26
Posts: 112

Re: oxygen in tiling WM

As far as I know the Qt equivalent of that is

 ~/.config/Trolltech.conf  

I think that is where qtconfig-qt4 stores its settings.
qtconfig-qt4 doesn't recognize the Oxygen theme even if it is installed, I tried setting it manually by editing this Trolltech file, but that causes Qt to fall back on to one of the other themes...

Last edited by nourathar (2013-06-03 23:09:59)

Offline

#4 2013-06-04 12:46:32

nourathar
Member
From: Bxl
Registered: 2013-04-26
Posts: 112

Re: oxygen in tiling WM

I found an answer to my second question that suggest that the answer to my first question is no:

It turns out there is a whole set of KDE python bindings in the PyKDE4 module; they are subclasses of the main PyQt4 classes such as QApplication, with some added KVoodoo, as for instance here:
http://api.kde.org/pykde-4.3-api/kdeui/ … ation.html

When I replace my QApplication with a KApplication, it shows the Oxygen theme as expected.

If I run this:

print list(Qt.QStyleFactory.keys())

it gives a list of the available Qt styles. When called within a QApplication it shows the standard ones, but from within a KApplication it shows the standard ones plus Oxygen. I suppose this shows that in its current form the Oxygen can not be independent from KDE.

I decided to go with the flow for now and I replaced i3-wm with i3-kde, which feels a lot more snappy on my system.

thanks,

J.

Offline

Board footer

Powered by FluxBB