Xmonad

From Gentoo Wiki
Revision as of 11:50, 1 May 2012 by Marens (Talk | contribs)

Jump to: navigation, search

xmonad is a fast and lightweight tiling-windowmanager for X11 written, configured and extended in the purely-functional programming language Haskell.

Contents

Installation

Generally, there are two ways to install XMonad:

  • Install it through emerge by typing
    root # emerge --ask x11-wm/xmonad

OR

  • Install it with cabal:
    user $ cabal install xmonad

Configuration

~/.xinitrc

If you don't use a display-manager (such as GDM or KDM) and instead want to start Xorg using startx, you have to create and edit your ~/.xinitrc. This is just a simple example file:

File~/.xinitrc

hsetroot                       # can be used to set a background-image
xsetroot -cursor_name left_ptr # sets the usual cursor pointer
setxkbmap -layout de           # activates the german keyboard-layout
exec xmonad                    # launches xmonad

consolekit and dbus integration

If you want to make use of automounting, manage power or network devices you'll probably want to make use of consolekit and dbus. This forces you to start XMonad in a slightly different way

File~/.xinitrc

...
exec ck-launch-session dbus-launch --sh-syntax --exit-with-session xmonad

and change the line from

File/etc/pam.d/system-login

...
session		optional	pam_ck_connector.so nox11
...

to

File/etc/pam.d/system-login

...
session		optional	pam_ck_connector.so
...

I recommend reading ssuominen's checklist to get a working ConsoleKit and PolicyKit setup for your console and X11

~/.xmonad/xmonad.hs

XMonad itself can be configured through ~/.xmonad/xmonad.hs which is written in Haskell.

Further information

Personal tools
Namespaces

Variants
Actions
Gentoo Websites logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Navigation
Toolbox
Categories