xmonad-contrib-gpl-0.12.1: Third party extensions for xmonad

Copyright(c) Dmitry Bogatov
LicenseGNU GPL3+
MaintainerDmitry Bogatov <KAction@gnu.org>
Stabilityunstable
Portabilityunportable
Safe HaskellNone
LanguageHaskell98

XMonad.Hooks.FocusSwitch

Contents

Description

Log hook, that will be run, when focused Window is changed.

Synopsis

Usage

Provides easy way to specify actions to perform on window focus switch.

defaultConfig { logHook = focusSwitch myFocusSwitchHandler }

myFocusSwitchHandler :: Maybe Window -> X ()
myFocusSwitchHandler  = --

Window is in Maybe, since no window may be focused (i.e empty workspace)

focusSwitch :: (Maybe Window -> X ()) -> X () Source