Personal tools

Xmonad/Basic Desktop Environment Integration

From HaskellWiki

< Xmonad(Difference between revisions)
Jump to: navigation, search
(Created page for common Config.Desktop usage)
 
m (Edited for clarity)
Line 1: Line 1:
 
= Using Desktop Environment Config Modules =
 
= Using Desktop Environment Config Modules =
   
The following modules from xmonad-contrib make it easy to start with good basic defaults to work within the given desktop environment. They set up better communication between xmonad and taskbars or status bars through EWMH's, allow gap toggling, and rebind run and logout keys to sensible desktop environment defaults.
+
The following modules from xmonad-contrib make it easy to start with good basic defaults to work within the given desktop environment. Make sure both the xmonad and xmonad-contrib packages are installed and of the same version. These modules set up better communication between xmonad and taskbars or status bars through extended window manager hints (EWMH's), bind the default key for gap toggling, and rebind run and logout keys to sensible desktop environment defaults.
   
You will still need to set up your session management and tell your desktop environment (DE) to use xmonad as described in the DE specific documents on [[Xmonad]], but the ff. will take care of getting xmonad's part of the puzzle working with a useful default configuration.
+
You will still need to set up your session management and tell your desktop environment (DE) to use xmonad as described in the DE specific documents on [[Xmonad]], but the following will take care of getting xmonad's part of the puzzle working with a useful default configuration.
   
Start with the appropriate version below in <code>~/.xmonad/xmonad.hs</code> then start or restart xmonad.hs to have xmonad recompile the binary in <code>~/.xmonad/</code> to use your new settings.
+
Once your desktop environment is ready to use xmonad, placing the appropriate version below in <code>~/.xmonad/xmonad.hs</code> will ensure xmonad is ready to work with the DE.
   
 
XMonad.Config.Xfce
 
XMonad.Config.Xfce

Revision as of 00:16, 12 September 2008

Using Desktop Environment Config Modules

The following modules from xmonad-contrib make it easy to start with good basic defaults to work within the given desktop environment. Make sure both the xmonad and xmonad-contrib packages are installed and of the same version. These modules set up better communication between xmonad and taskbars or status bars through extended window manager hints (EWMH's), bind the default key for gap toggling, and rebind run and logout keys to sensible desktop environment defaults.

You will still need to set up your session management and tell your desktop environment (DE) to use xmonad as described in the DE specific documents on Xmonad, but the following will take care of getting xmonad's part of the puzzle working with a useful default configuration.

Once your desktop environment is ready to use xmonad, placing the appropriate version below in ~/.xmonad/xmonad.hs will ensure xmonad is ready to work with the DE.

XMonad.Config.Xfce

import XMonad
import XMonad.Config.Xfce
 
main = xmonad xfceConfig

XMonad.Config.Gnome

import XMonad
import XMonad.Config.Gnome
 
main = xmonad gnomeConfig

XMonad.Config.Kde

import XMonad
import XMonad.Config.Kde
 
main = xmonad kdeConfig