diff options
author | Devin Mullins <devinmullins@gmail.com> | 2014-09-25 22:30:37 +0200 |
---|---|---|
committer | Devin Mullins <devinmullins@gmail.com> | 2014-09-25 22:30:37 +0200 |
commit | 1c870f828837d3558420bbb84c9e0f085f0ec352 (patch) | |
tree | 76e1479ec3daf4be50b2f7a0c4eb0b376145e708 /XMonad/Config | |
parent | b17927fa178be9170318bc8b7fb3eb38c09e0c20 (diff) | |
download | XMonadContrib-1c870f828837d3558420bbb84c9e0f085f0ec352.tar.gz XMonadContrib-1c870f828837d3558420bbb84c9e0f085f0ec352.tar.xz XMonadContrib-1c870f828837d3558420bbb84c9e0f085f0ec352.zip |
X.C.Prime: doc changes
Ignore-this: 51204c1a9f2e6ed21228d2910417fd21
darcs-hash:20140925203037-c7120-92903fc781c20e31345ff47c4ba3f758d5d4e078.gz
Diffstat (limited to 'XMonad/Config')
-rw-r--r-- | XMonad/Config/Prime.hs | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/XMonad/Config/Prime.hs b/XMonad/Config/Prime.hs index e0f9b6a..7d53b64 100644 --- a/XMonad/Config/Prime.hs +++ b/XMonad/Config/Prime.hs @@ -74,7 +74,7 @@ addLayout, resetLayout, modifyLayout, --- * Update entire XConfig +-- * Updating the XConfig en masse -- $update startWith, apply, @@ -599,3 +599,17 @@ applyIO = id -- This is here in case we want to change the Prime type later. -- > test2 = do spawn "echo Hi" -- > spawn "echo Bye" -- > where (>>) = (P.>>) +-- +-- === How do I use the old keyboard syntax? +-- You can use 'apply' and supply your own Haskell function. For instance: +-- +-- > apply $ flip additionalKeys $ [((mod1Mask, xK_z), spawn "date | dzen2 -fg '#eeeeee' -p 2")] +-- +-- === How do I run command before xmonad starts (like 'spawnPipe')? +-- If you're using it for a status bar, see if 'XMonad.Hooks.DynamicLog.dzen' +-- or 'XMonad.Hooks.DynamicLog.xmobar' does what you want. If so, you can apply +-- it with 'applyIO'. +-- +-- If not, you can write your own @XConfig l -> IO (XConfig l)@ and apply it +-- with 'applyIO'. When writing this function, see the above tip about using +-- normal monads. |