aboutsummaryrefslogtreecommitdiffstats
path: root/XMonad/Config/Arossato.hs
diff options
context:
space:
mode:
authorAndrea Rossato <andrea.rossato@unibz.it>2007-11-15 20:10:39 +0100
committerAndrea Rossato <andrea.rossato@unibz.it>2007-11-15 20:10:39 +0100
commite722c698f8dbe4815c83f386a9790096aefcc243 (patch)
treeaed18a550469ae47bfa2ae7119b376a0b534457e /XMonad/Config/Arossato.hs
parent59a17bcb6c9671f0b22d66b56575aab2b334727d (diff)
downloadXMonadContrib-e722c698f8dbe4815c83f386a9790096aefcc243.tar.gz
XMonadContrib-e722c698f8dbe4815c83f386a9790096aefcc243.tar.xz
XMonadContrib-e722c698f8dbe4815c83f386a9790096aefcc243.zip
Arossato: documentation
darcs-hash:20071115191039-32816-50a5a1d99a8370e5e2cc348c660c493ae5b90211.gz
Diffstat (limited to '')
-rw-r--r--XMonad/Config/Arossato.hs53
1 files changed, 47 insertions, 6 deletions
diff --git a/XMonad/Config/Arossato.hs b/XMonad/Config/Arossato.hs
index 8d492cd..7b59938 100644
--- a/XMonad/Config/Arossato.hs
+++ b/XMonad/Config/Arossato.hs
@@ -13,7 +13,12 @@
--
------------------------------------------------------------------------
-module XMonad.Config.Arossato where
+module XMonad.Config.Arossato
+ ( -- * Usage
+ -- $usage
+ arossatoConfig
+ , arossatoTabbedConfig
+ ) where
import qualified Data.Map as M
import Graphics.X11.Xlib
@@ -34,9 +39,46 @@ import XMonad.Prompt.Ssh
import XMonad.Prompt.Window
import XMonad.Prompt.XMonad
--- The Ion3 clean style
-myTabConfig :: TConf
-myTabConfig =
+-- $usage
+-- The simplest way to use this configuration module is to use an
+-- @~\/.xmonad\/xmonad.hs@ like this:
+--
+-- > module Main (main) where
+-- >
+-- > import XMonad
+-- > import XMonad.Config.Arossato (arossatoConfig)
+-- >
+-- > main :: IO ()
+-- > main = xmonad arossatoConfig
+--
+--
+-- You can use this module also as a starting point for writing your
+-- own configuration module from scratch. Save it as your
+-- @~\/.xmonad\/xmonad.hs@ and:
+--
+-- 1. Change the module name from
+--
+-- > module XMonad.Config.Arossato
+-- > ( -- * Usage
+-- > -- $usage
+-- > arossatoConfig
+-- > , arossatoTabbedConfig
+-- > ) where
+--
+-- to
+--
+-- > module Main where
+--
+-- 2. Add a line like:
+--
+-- > main = xmonad arossatoConfig
+--
+-- 3. Start playing with the configuration options...;)
+
+-- | My configuration for the Tabbed Layout. Basically this is the
+-- Ion3 clean style.
+arossatoTabbedConfig :: TConf
+arossatoTabbedConfig =
defaultTConf { activeColor = "#8a999e"
, inactiveColor = "#545d75"
, activeBorderColor = "white"
@@ -65,7 +107,7 @@ arossatoConfig = defaultConfig
}
where
-- layouts
- mytab = tabbed shrinkText myTabConfig
+ mytab = tabbed shrinkText arossatoTabbedConfig
tiled = Tall 1 0.03 0.5
-- the logHook pretty-printer
@@ -88,7 +130,6 @@ arossatoConfig = defaultConfig
] ++
-- I want modMask .|. shiftMask 1-9 to be free!
[(shiftMask .|. modMask x, k) | k <- [xK_1 .. xK_9]]
-
-- These are my personal key bindings
toAdd x =
[ ((modMask x , xK_F12 ), xmonadPrompt defaultXPConfig )