xmonad-contrib-bluetilebranch-0.8.1.2: Third party extensions for xmonadSource codeContentsIndex
XMonad.Hooks.FadeInactive
Portabilityunportable
Stabilityunstable
MaintainerJustin Bogner <mail@justinbogner.com>
Contents
Usage
Description
Makes XMonad set the _NET_WM_WINDOW_OPACITY atom for inactive windows, which causes those windows to become slightly translucent if something like xcompmgr is running
Synopsis
setOpacity :: Window -> Integer -> X ()
isUnfocused :: Window -> X Bool
fadeIn :: Window -> X ()
fadeOut :: Integer -> Window -> X ()
fadeInactiveLogHook :: Integer -> X ()
fadeOutLogHook :: (Window -> X Bool) -> Integer -> X ()
Usage

You can use this module with the following in your ~/.xmonad/xmonad.hs:

 import XMonad
 import XMonad.Hooks.FadeInactive

 myLogHook :: X ()
 myLogHook = fadeInactiveLogHook fadeAmount
     where fadeAmount = 0xdddddddd

 main = xmonad defaultConfig { logHook = myLogHook }

fadeAmount can be any integer you will need to have xcompmgr http://freedesktop.org/wiki/Software/xapps or something similar for this to do anything

For more detailed instructions on editing the layoutHook see:

XMonad.Doc.Extending

For more detailed instructions on editing the layoutHook see:

XMonad.Doc.Extending

setOpacity :: Window -> Integer -> X ()Source
sets the opacity of a window
isUnfocused :: Window -> X BoolSource
returns True if the window doesn't have the focus.
fadeIn :: Window -> X ()Source
makes a window completely opaque
fadeOut :: Integer -> Window -> X ()Source
fades a window out by setting the opacity
fadeInactiveLogHook :: Integer -> X ()Source
lowers the opacity of inactive windows to the specified amount
fadeOutLogHook :: (Window -> X Bool) -> Integer -> X ()Source
fades out every window that satisfies a given property.
Produced by Haddock version 2.4.2