All pastes #825757 Raw Edit

Untitled

public text v1 · immutable
#825757 ·published 2007-12-20 20:03 UTC
rendered paste body
== Configuring xmonad ==


defaultGaps :: [(Int,Int,Int,Int)]
defaultGaps = [(18,0,0,0)] -- 15 for default dzen font



xmonad is configured by creating and editing the file:

    ~/.xmonad/xmonad.hs

xmonad then uses settings from this file as arguments to the window manager,
on startup. For a complete example of possible settings, see the file:

    man/xmonad.hs

Further examples are on the website, wiki and extension documentation.

    http://haskell.org/haskellwiki/Xmonad

== A simple example ==

Here is a basic example, which overrides the default border width,
default terminal, and some colours. This text goes in the file
$HOME/.xmonad/xmonad.hs :

    import XMonad

    main = xmonad $ defaultConfig
        { borderWidth        = 2
        , terminal           = "urxvt"
        , normalBorderColor  = "#cccccc"
        , focusedBorderColor = "#cd8b00" }

You can find the defaults in the file:

    XMonad/Config.hs

== Checking your xmonad.hs is correct ==

Place this text in ~/.xmonad/xmonad.hs, and then check that it is
syntactically and type correct by loading it in the Haskell
interpreter:

    $ ghci ~/.xmonad/xmonad.hs
    GHCi, version 6.8.1: http://www.haskell.org/ghc/  :? for help
    Loading package base ... linking ... done.
    Ok, modules loaded: Main.

    Prelude Main> :t main
    main :: IO ()

Ok, looks good.

== Loading your configuration ==