Xmonad/Using xmonad in KDE
From HaskellWiki
Latest revision as of 23:18, 24 February 2012
Here's how to configure Xmonad to work with KDE.
[edit].
[edit] 2 Related reading
Read the GNOME/xmonad page, really. Much of what is written there also applies to KDE and is not repeated here.
But if all you want is to get started quickly with Xmonad in KDE, read on.
[edit] 3 Versions
The following instructions are optimized and tested (so far) for xmonad 0.7 with KDE 3.5 and KDE 4.1
[edit] 4 Before you begin
Make sure that xmonad and xmonad-contrib are installed. On most systems, you can just install the packages.
[edit].
[edit] 5.1 Using Config.Kde
For xmonad-0.8 and greater, you can use the
XMonad.Config.Kde
- deals with docks and taskbars
- sets the default terminal to konsole
- sets mod-p to run popup
- sets mod-shift-q to logout properly.
import XMonad import XMonad.Config.Kde import qualified XMonad.StackSet as W -- to shift and float windows main = xmonad kdeConfig { modMask = mod4Mask -- use the Windows button as mod , manageHook = manageHook kdeConfig <+> myManageHook } myManageHook =
[edit] 5.2 xmonad-0.7 and earlier } myManageHook = manageDocks <+>
Note: To get the class name or title of an application for use in the manageHook above:
- Open the application.
- Enter the command
xprop | grep WM_CLASSin a terminal window on the same desktop.
- Click on the application window.
- Read the class name in the terminal window. The class name is the second of the two quoted strings displayed, usually capitalized. The first one is resource, usually lower case.
(Use the command
xprop | grep WM_NAMEto get the title property.)
Thanks to everyone on #xmonad, especially sjanssen, for all the help in putting together this sample xmonad configuration for KDE.
For more tips on xonfiguring your xmonad, see: XMonad FAQ's, XMonad Configuration Tips.
[edit] 6 Make xmonad your window manager in KDE
Create the directory
~/.kde/env if it does not
already exist. (For KDE 4 use
~/.kde4/env) Create a file there called
set_window_manager.sh
containing only the following line of text:
export.
You may also have to use
chmod to ensure that
set_window_manager.sh is executable.
[edit] 7 Restart your KDE session
Now end your current KDE session and start a new one. Welcome to xmonad with KDE!
[edit] 8 Tips and issues
- As in Gnome, it is very important not to use the xmonad
mod-shift-qkey to exit your session. Use the KDE menu or panel applet. This is dealt with in Config.Kde. It's ok to mod-shift-q to logout when using Config.Kde binding for mod-shift-q.
-..