Difference between revisions of "Xmonad"
(→Further information) |
|||
| Line 15: | Line 15: | ||
exec xmonad # launches xmonad | exec xmonad # launches xmonad | ||
</pre>}} | </pre>}} | ||
| + | |||
| + | ===<code>consolekit and dbus integration</code>=== | ||
| + | |||
| + | 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||<pre> | ||
| + | ... | ||
| + | exec ck-launch-session dbus-launch --sh-syntax --exit-with-session xmonad | ||
| + | </pre>}} | ||
| + | |||
| + | and change the line from | ||
| + | |||
| + | {{File|/etc/pam.d/system-login||<pre> | ||
| + | ... | ||
| + | session optional pam_ck_connector.so nox11 | ||
| + | ... | ||
| + | </pre>}} | ||
| + | |||
| + | to | ||
| + | |||
| + | {{File|/etc/pam.d/system-login||<pre> | ||
| + | ... | ||
| + | session optional pam_ck_connector.so | ||
| + | ... | ||
| + | </pre>}} | ||
| + | |||
| + | I recommend reading ssuominen's [http://forums.gentoo.org/viewtopic-t-858965.html checklist to get a working ConsoleKit and PolicyKit setup for your console and X11] | ||
| + | |||
=== <code>~/.xmonad/xmonad.hs</code> === | === <code>~/.xmonad/xmonad.hs</code> === | ||
XMonad itself can be configured through <code>~/.xmonad/xmonad.hs</code> which is written in Haskell. | XMonad itself can be configured through <code>~/.xmonad/xmonad.hs</code> which is written in Haskell. | ||
Revision as of 11:50, 1 May 2012
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:
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
... exec ck-launch-session dbus-launch --sh-syntax --exit-with-session xmonad
and change the line from
... session optional pam_ck_connector.so nox11 ...
to
... 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.