This forum has been archived. All content is frozen. Please use KDE Discuss instead.

KDE & Xmonad

Tags: None
(comma "," separated)
vootey
Registered Member
Posts
54
Karma
0
OS

KDE & Xmonad

Sun Aug 15, 2010 9:26 am
Hi there,

Currently I'm using a KDE (SC 4.5) session with XMonad as Window Manager (and xmonad's kde-config) on Gentoo.

Unfortunately it seems, the more Plasma develops and the better it gets (at least at the kubuntu-desktop, where I'm posting from), the more and more issues I get in combination with XMonad on my Gentoo-Laptop (for example not redrawing certain areas, not showing notifications, not clickable Plasma-icons ...).

So I want to get rid of Plasma and use more Xmonad-compliant stuff.
What I plan to do is, to start a pure XMonad-Session and start KDE-required processes myself (I wanna keep KDE's power management and akonadi/nepomuk stuff for example).

My question is now, what exactly do I have to launch to get all the KDE stuff but Plasma started?
Or has anyone got a better solution for this at all?

Thanks for your suggestions.
vootey
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS

Re: KDE & Xmonad

Sun Aug 15, 2010 10:26 am
You simply need to launch "kdeinit4" which will take care of ensuring KDE Infrastructure is functional.

You may need to run the following command however to load Power Management, since it is only supposed to run in a full KDE session ( and therefore may not be loaded when running kdeinit4 )
Code: Select all
qdbus org.kde.kded /kded loadModule powerdevil


Akonadi will be started by dependent applications on demand.

Nepomuk can be started by running "nepomukserver". I do not know if kdeinit4 will start Nepomuk. Akonadi will automatically start Nepomuk when it is started if Nepomuk isn't running.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
vootey
Registered Member
Posts
54
Karma
0
OS

Re: KDE & Xmonad

Mon Aug 16, 2010 3:09 pm
Thank you for your quick answer!

I did as you said and the most things seem to work.
fyi: kdeinit4 didnt start nepomuk; had to do it explicit.

One thing I didnt get right now is the mouse-cursor-theme. I cannot change it with KDE-settings. Did Plasma care about the mouse-theme?
If yes, how can I change this setting in X?
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS

Re: KDE & Xmonad

Tue Aug 17, 2010 4:51 am
For the mouse cursor, you need to look at the relevant lines of the "startkde" script, and ensure they are run on startup.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
vootey
Registered Member
Posts
54
Karma
0
OS

Re: KDE & Xmonad

Tue Aug 17, 2010 4:18 pm
hm, thanks again.

Another problem: I cannot logout via kde.
KDE-Buttons dont work and
Code: Select all
dbus-send --print-reply --dest=org.kde.ksmserver /KSMServer  org.kde.KSMServerInterface.logout int32:0 int32:3 int32:1

says
Code: Select all
Error org.freedesktop.DBus.Error.ServiceUnknown: The name org.kde.ksmserver was not provided by any .service files


What should I do to log out cleanly?
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS

Re: KDE & Xmonad

Wed Aug 18, 2010 5:32 am
You will need to ask Xmonad to perform the logout procedure, as KSMServer is only available in a full KDE session. One thing you could try to do is disable Plasma autostart, and simply have XMonad be autostart'ed by KDE.

To disable Plasma autostart, simply add a file named "plasma-desktop.desktop" in ~/.config/autostart with the following content.
Code: Select all
[Desktop Entry]
Hidden=true


Then simply have a normal KDE session be started ( run "startkde" )

You can autostart XMonad using a similar procedure to above, simply create an executable .desktop file in ~/.config/autostart which runs XMonad.

Code: Select all
[Desktop Entry]
Exec=xmonad
Type=Service
X-KDE-autostart-phase=BaseDesktop


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
vootey
Registered Member
Posts
54
Karma
0
OS

Re: KDE & Xmonad

Fri Aug 20, 2010 6:26 am
Thank you for your help!


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], Sogou [Bot], Yahoo [Bot]