aboutsummaryrefslogtreecommitdiffstats
path: root/XMonad/Hooks/UrgencyHook.hs
diff options
context:
space:
mode:
authorDevin Mullins <me@twifkak.com>2007-11-12 05:41:02 +0100
committerDevin Mullins <me@twifkak.com>2007-11-12 05:41:02 +0100
commitfb4e5e44adff8c70ca051cf42bfe461583a0ebc5 (patch)
treeadb764dc08dbecce430710ff6d075ad5ea2c65a3 /XMonad/Hooks/UrgencyHook.hs
parentde96602d9dbbb913c4ebc3b14df8563837af8ee8 (diff)
downloadXMonadContrib-fb4e5e44adff8c70ca051cf42bfe461583a0ebc5.tar.gz
XMonadContrib-fb4e5e44adff8c70ca051cf42bfe461583a0ebc5.tar.xz
XMonadContrib-fb4e5e44adff8c70ca051cf42bfe461583a0ebc5.zip
fix intro doco for UrgencyHook
Ooh, this new XConfig l -> XConfig l' function makes the docs disappear! darcs-hash:20071112044102-78224-e7001d7115223273b73a9229f954db3f70541a1e.gz
Diffstat (limited to 'XMonad/Hooks/UrgencyHook.hs')
-rw-r--r--XMonad/Hooks/UrgencyHook.hs14
1 files changed, 5 insertions, 9 deletions
diff --git a/XMonad/Hooks/UrgencyHook.hs b/XMonad/Hooks/UrgencyHook.hs
index f3efcaa..e32fe8f 100644
--- a/XMonad/Hooks/UrgencyHook.hs
+++ b/XMonad/Hooks/UrgencyHook.hs
@@ -58,15 +58,11 @@ import Graphics.X11.Xlib.Extras
-- logHook, then choose NoUrgencyHook. Otherwise, you may use the provided
-- dzenUrgencyHook, or write your own.
--
--- Wire your urgency hook into the layoutHook by use of the withUrgencyHook
--- function. For example, add this to your config record:
+-- Enable your urgency hook by wrapping your config record in a call to
+-- withUrgencyHook. For example:
--
--- > , layoutHook = Layout $ withUrgencyHook dzenUrgencyHook { args = ["-bg", "darkgreen", "-xs", "1"] }
--- > $ layout
---
--- It shouldn't hurt to have the "withUrgencyHook $" at the outermost layer,
--- as above, as UrgencyHook is a LayoutModifier, and hence passes on any
--- messages sent to it.
+-- > main = xmonad $ withUrgencyHook dzenUrgencyHook { args = ["-bg", "darkgreen", "-xs", "1"] }
+-- > $ defaultConfig
--
-- If you want to modify your logHook to print out information about urgent windows,
-- the functions readUrgents and withUrgents are there to help you with that.
@@ -74,7 +70,7 @@ import Graphics.X11.Xlib.Extras
-- | This is the preferred method of enabling an urgency hook. It will prepend
-- an action to your logHook that remove visible windows from the list of urgent
--- windows. If you don't like that behavior, use urgencyLayoutHook instead.
+-- windows. If you don't like that behavior, you may use urgencyLayoutHook instead.
withUrgencyHook :: (LayoutClass l Window, UrgencyHook h Window) =>
h -> XConfig l -> XConfig (ModifiedLayout (WithUrgencyHook h) l)
withUrgencyHook hook conf = conf { layoutHook = urgencyLayoutHook hook $ layoutHook conf