Copyright (c) 2008 Justin Bogner BSD Justin Bogner unstable unportable None Haskell98

Contents

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

# Usage

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

import XMonad

myLogHook :: X ()

main = xmonad def { logHook = myLogHook }

fadeAmount can be any rational between 0 and 1. 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 logHook see:

For more detailed instructions on editing the layoutHook see:

setOpacity :: Window -> Rational -> X () Source #

Sets the opacity of a window

Returns True if the window doesn't have the focus.

Returns True if the window doesn't have the focus, and the window is on the current workspace. This is specifically handy in a multi monitor setup (xinerama) where multiple workspaces are visible. Using this, non-focused workspaces are are not faded out making it easier to look and read the content on them.

fadeIn :: Window -> X () Source #

Makes a window completely opaque

fadeOut :: Rational -> Window -> X () Source #

Fades a window out by setting the opacity

Fades a window by the specified amount if it satisfies the first query, otherwise makes it opaque.

Sets the opacity of inactive windows to the specified amount

Set the opacity of inactive windows, on the current workspace, to the specified amount. This is specifically usefull in a multi monitor setup. See isUnfocusedOnCurrentWS.

Fades out every window by the amount returned by the query.