From 1c870f828837d3558420bbb84c9e0f085f0ec352 Mon Sep 17 00:00:00 2001 From: Devin Mullins Date: Thu, 25 Sep 2014 22:30:37 +0200 Subject: X.C.Prime: doc changes Ignore-this: 51204c1a9f2e6ed21228d2910417fd21 darcs-hash:20140925203037-c7120-92903fc781c20e31345ff47c4ba3f758d5d4e078.gz --- XMonad/Config/Prime.hs | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'XMonad/Config/Prime.hs') 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. -- cgit v1.2.3