aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoman Cheplyaka <roma@ro-che.info>2008-11-17 16:30:27 +0100
committerRoman Cheplyaka <roma@ro-che.info>2008-11-17 16:30:27 +0100
commitc5e7f0f8e2983ea7a4d76e1e71ed0712c3c0ab1d (patch)
tree78f4c28ec947c2b1e88e808ef0b0eb6416cb9b74
parent74b0ba725bf0e7dd8b6a5617acf2353729aae1d1 (diff)
downloadXMonadContrib-c5e7f0f8e2983ea7a4d76e1e71ed0712c3c0ab1d.tar.gz
XMonadContrib-c5e7f0f8e2983ea7a4d76e1e71ed0712c3c0ab1d.tar.xz
XMonadContrib-c5e7f0f8e2983ea7a4d76e1e71ed0712c3c0ab1d.zip
Export setOpacity from FadeInactive. Document how to make monitor transparent (X.L.Monitor)
darcs-hash:20081117153027-3ebed-6327713d89216b663ac9796dfb6975f12e059c84.gz
-rw-r--r--XMonad/Hooks/FadeInactive.hs1
-rw-r--r--XMonad/Layout/Monitor.hs5
2 files changed, 6 insertions, 0 deletions
diff --git a/XMonad/Hooks/FadeInactive.hs b/XMonad/Hooks/FadeInactive.hs
index 53f3809..4ebc38e 100644
--- a/XMonad/Hooks/FadeInactive.hs
+++ b/XMonad/Hooks/FadeInactive.hs
@@ -15,6 +15,7 @@
module XMonad.Hooks.FadeInactive (
-- * Usage
-- $usage
+ setOpacity,
fadeInactiveLogHook
) where
diff --git a/XMonad/Layout/Monitor.hs b/XMonad/Layout/Monitor.hs
index 50fecde..1bfc6a8 100644
--- a/XMonad/Layout/Monitor.hs
+++ b/XMonad/Layout/Monitor.hs
@@ -126,6 +126,11 @@ addNamedPersistentMonitor name p r = ModifiedLayout (Monitor p r True (Just name
-- 'addNamedMonitor' or 'addNamedPersistentMonitor' to be able to toggle
-- them independently.
--
+-- - To make monitor transparent, import "XMonad.Hooks.FadeInactive" and change
+-- ManageHook to (@0xAAAAAAAA@ is the level of opacity):
+--
+-- > className =? "Cairo-clock"--> (ask >>= liftX . flip setOpacity 0xAAAAAAAA >> doIgnore)
+--
-- - You can display monitor only on specific workspaces with
-- "XMonad.Layout.PerWorkspace".