Export setOpacity from FadeInactive. Document how to make monitor transparent (X.L.Monitor)

This commit is contained in:
Roman Cheplyaka 2008-11-17 15:30:27 +00:00
parent 6962d8f216
commit 3b4473f121
2 changed files with 6 additions and 0 deletions

View File

@ -15,6 +15,7 @@
module XMonad.Hooks.FadeInactive ( module XMonad.Hooks.FadeInactive (
-- * Usage -- * Usage
-- $usage -- $usage
setOpacity,
fadeInactiveLogHook fadeInactiveLogHook
) where ) where

View File

@ -126,6 +126,11 @@ addNamedPersistentMonitor name p r = ModifiedLayout (Monitor p r True (Just name
-- 'addNamedMonitor' or 'addNamedPersistentMonitor' to be able to toggle -- 'addNamedMonitor' or 'addNamedPersistentMonitor' to be able to toggle
-- them independently. -- 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 -- - You can display monitor only on specific workspaces with
-- "XMonad.Layout.PerWorkspace". -- "XMonad.Layout.PerWorkspace".