diff options
author | Daniel Wagner <daniel@wagner-home.com> | 2011-09-16 22:28:45 +0200 |
---|---|---|
committer | Daniel Wagner <daniel@wagner-home.com> | 2011-09-16 22:28:45 +0200 |
commit | 27ec05b58649f262dad5812104ac16286b1bbe30 (patch) | |
tree | 1913c75942ac1dc174436149da41afe188d49415 /XMonad | |
parent | 48d18b1423077cd925388baf18f936fe63825f39 (diff) | |
download | XMonadContrib-27ec05b58649f262dad5812104ac16286b1bbe30.tar.gz XMonadContrib-27ec05b58649f262dad5812104ac16286b1bbe30.tar.xz XMonadContrib-27ec05b58649f262dad5812104ac16286b1bbe30.zip |
documentation patch to XMonad.Doc.Extending
Ignore-this: 77998915c337590f127fd4a4b6029029
darcs-hash:20110916202845-76d51-83521865553fd33a5487732da932b8a1f69f53da.gz
Diffstat (limited to 'XMonad')
-rw-r--r-- | XMonad/Doc/Extending.hs | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/XMonad/Doc/Extending.hs b/XMonad/Doc/Extending.hs index cb915e8..1d0dd9c 100644 --- a/XMonad/Doc/Extending.hs +++ b/XMonad/Doc/Extending.hs @@ -936,16 +936,18 @@ example, you could write: and provide an appropriate definition of @myKeys@, such as: -> myKeys conf@(XConfig {XMonad.modMask = modm}) = +> myKeys conf@(XConfig {XMonad.modMask = modm}) = M.fromList > [ ((modm, xK_F12), xmonadPrompt defaultXPConfig) > , ((modm, xK_F3 ), shellPrompt defaultXPConfig) > ] This particular definition also requires importing "XMonad.Prompt", -"XMonad.Prompt.Shell", and "XMonad.Prompt.XMonad": +"XMonad.Prompt.Shell", "XMonad.Prompt.XMonad", and "Data.Map": -> import XMonadPrompt -> import ... -- and so on +> import qualified Data.Map as M +> import XMonad.Prompt +> import XMonad.Prompt.Shell +> import XMonad.Prompt.XMonad For a list of the names of particular keys (such as xK_F12, and so on), see @@ -1172,7 +1174,7 @@ Suppose we want a list with the 'XMonad.Layout.Full', Then we create the combination of layouts we need: -> mylayoutHook = Full ||| tabbed shrinkText defaultTConf ||| Accordion +> mylayoutHook = Full ||| tabbed shrinkText defaultTheme ||| Accordion Now, all we need to do is change the 'XMonad.Core.layoutHook' @@ -1186,11 +1188,11 @@ example, suppose we want to use the 'XMonad.Layout.NoBorders.noBorders' layout modifier, from the "XMonad.Layout.NoBorders" module (which must be imported): -> mylayoutHook = noBorders (Full ||| tabbed shrinkText defaultTConf ||| Accordion) +> mylayoutHook = noBorders (Full ||| tabbed shrinkText defaultTheme ||| Accordion) If we want only the tabbed layout without borders, then we may write: -> mylayoutHook = Full ||| noBorders (tabbed shrinkText defaultTConf) ||| Accordion +> mylayoutHook = Full ||| noBorders (tabbed shrinkText defaultTheme) ||| Accordion Our @~\/.xmonad\/xmonad.hs@ will now look like this: @@ -1200,7 +1202,7 @@ Our @~\/.xmonad\/xmonad.hs@ will now look like this: > import XMonad.Layout.Accordion > import XMonad.Layout.NoBorders > -> mylayoutHook = Full ||| noBorders (tabbed shrinkText defaultTConf) ||| Accordion +> mylayoutHook = Full ||| noBorders (tabbed shrinkText defaultTheme) ||| Accordion > > main = xmonad $ defaultConfig { layoutHook = mylayoutHook } |