aboutsummaryrefslogtreecommitdiffstats
path: root/XMonad
diff options
context:
space:
mode:
authorBrent Yorgey <byorgey@gmail.com>2007-11-24 18:14:52 +0100
committerBrent Yorgey <byorgey@gmail.com>2007-11-24 18:14:52 +0100
commitbcef2910ddbfd253db0c1d7092f7b8fa847536ec (patch)
tree9b21ce8b52f57e216146690da664e3644a8bc5ad /XMonad
parentc6576d6dea5111710082d812a6d455f1e4957fbd (diff)
downloadXMonadContrib-bcef2910ddbfd253db0c1d7092f7b8fa847536ec.tar.gz
XMonadContrib-bcef2910ddbfd253db0c1d7092f7b8fa847536ec.tar.xz
XMonadContrib-bcef2910ddbfd253db0c1d7092f7b8fa847536ec.zip
Extending.hs: a few edits
darcs-hash:20071124171452-bd4d7-cf7ab3c69d0064ee3cf79fb9f67acf86bea25a6d.gz
Diffstat (limited to 'XMonad')
-rw-r--r--XMonad/Doc/Extending.hs16
1 files changed, 9 insertions, 7 deletions
diff --git a/XMonad/Doc/Extending.hs b/XMonad/Doc/Extending.hs
index 3df2427..17b1072 100644
--- a/XMonad/Doc/Extending.hs
+++ b/XMonad/Doc/Extending.hs
@@ -785,19 +785,15 @@ all we need to do is change the 'XMonad.Core.manageHook' field of the
> main = xmonad defaultConfig { ..., manageHook = newManageHook, ... }
-And we are done. One more thing to note about this system is that if
-a window matches multiple rules in a 'XMonad.Config.manageHook', /all/
-of the corresponding actions will be run (in the order in which they
-are defined). This is a change from versions before 0.5, when only
-the first rule that matched was run.
+And we are done.
-Obviously we may be willing to add more then one
+Obviously, we may wish to add more then one
'XMonad.Config.manageHook'. In this case we can use a list of hooks,
compose them all with 'XMonad.ManageHook.composeAll', and add the
composed to the default one.
For instance, if we want RealPlayer to float and thunderbird always
-opened in the workspace named "mail" we can do like this:
+opened in the workspace named "mail", we can do so like this:
> myManageHook = composeAll [ resource =? "realplay.bin" --> doFloat
> , resource =? "thunderbird-bin" --> doF (W.shift "mail")
@@ -811,6 +807,12 @@ function, "XMonad.StackSet", like this:
And then we can add @myManageHook@ to the default one to create
@newManageHook@ as we did in the previous example.
+One more thing to note about this system is that if
+a window matches multiple rules in a 'XMonad.Config.manageHook', /all/
+of the corresponding actions will be run (in the order in which they
+are defined). This is a change from versions before 0.5, when only
+the first rule that matched was run.
+
-}
{- $logHook