aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoman Cheplyaka <roma@ro-che.info>2008-11-17 08:37:09 +0100
committerRoman Cheplyaka <roma@ro-che.info>2008-11-17 08:37:09 +0100
commit4ec1f053983150900d19302e8edc0b70b2fd3f3c (patch)
tree613f3b553d0a59568f81f1e4d9ac837083cf002c
parent43d7d7cb652d49726f7b83a4088c1bf1b34ec61a (diff)
downloadXMonadContrib-4ec1f053983150900d19302e8edc0b70b2fd3f3c.tar.gz
XMonadContrib-4ec1f053983150900d19302e8edc0b70b2fd3f3c.tar.xz
XMonadContrib-4ec1f053983150900d19302e8edc0b70b2fd3f3c.zip
Monitor: improved the docs
darcs-hash:20081117073709-3ebed-a862abc4c0fdcf7c7bf129ad0c3839d7022c151c.gz
-rw-r--r--XMonad/Layout/Monitor.hs20
1 files changed, 14 insertions, 6 deletions
diff --git a/XMonad/Layout/Monitor.hs b/XMonad/Layout/Monitor.hs
index d46f914..b9a3233 100644
--- a/XMonad/Layout/Monitor.hs
+++ b/XMonad/Layout/Monitor.hs
@@ -44,6 +44,10 @@ import Control.Monad
--
-- > myLayouts = addMonitor (ClassName "Cairo-clock" `And` Title "MacSlow's Cairo-Clock") (Rectangle (1280-150) (800-150) 150 150) $ tall ||| Full ||| ...
--
+-- And make the desired window unmanaged with ManageHook:
+--
+-- > , className =? "Cairo-clock"--> doIgnore
+--
-- After that, if there exists a window with specified properties, it will be
-- displayed on top of all /tiled/ (not floated) windows on specified
-- position.
@@ -107,14 +111,16 @@ addNamedPersistentMonitor :: String -> Property -> Rectangle -> l a -> ModifiedL
addNamedPersistentMonitor name p r = ModifiedLayout (Monitor p r True (Just name) True)
-- $hints
--- - This module assumes that there is only one window satisfying property exists. Also it's good idea to make it unmanaged and (optionally) hide it using ManageHook:
+-- - This module assumes that there is only one window satisfying property exists.
--
--- > className =? "Cairo-clock"--> (ask >>= \w -> liftX (hide w) >> doF (W.delete w))
+-- - If you want the monitor to be available on /all/ layouts, use
+-- 'addPersistentMonitor' instead of 'addMonitor' to avoid unnecessary
+-- flickering. You can still toggle monitor with a keybinding.
--
--- - If you want monitor to be available on /all/ layouts, there's no point in
--- hiding it. Also use 'addPersistentMonitor' instead of
--- 'addMonitor' to avoid unnecessary flickering. You can still toggle
--- monitor with a keybinding.
+-- - On the other hand, if you use the monitor only with some of the layouts, you
+-- might want to hide it on the startup. Then change ManageHook to the following:
+--
+-- > className =? "Cairo-clock"--> (ask >>= \w -> liftX (hide w) >> doF (W.delete w))
--
-- - You can use several monitors with nested modifiers. Give them a name using
-- 'addNamedMonitor' or 'addNamedPersistentMonitor' to be able to toggle
@@ -129,3 +135,5 @@ addNamedPersistentMonitor name p r = ModifiedLayout (Monitor p r True (Just name
-- - automatically unmanage the window?
--
-- - specify position relative to the screen
+--
+-- - toggle monitor on all workspaces (how?)