xmonad-contrib-bluetilebranch-0.8.1.2: Third party extensions for xmonadSource codeContentsIndex
XMonad.Util.WindowProperties
Portabilityunportable
Stabilityunstable
MaintainerRoman Cheplyaka <roma@ro-che.info>
Contents
EDSL for window properties
Helper functions
Description
EDSL for specifying window properties; various utilities related to window properties.
Synopsis
data Property
= Title String
| ClassName String
| Resource String
| Role String
| And Property Property
| Or Property Property
| Not Property
| Const Bool
hasProperty :: Property -> Window -> X Bool
focusedHasProperty :: Property -> X Bool
allWithProperty :: Property -> X [Window]
propertyToQuery :: Property -> Query Bool
getProp32 :: Atom -> Window -> X (Maybe [CLong])
getProp32s :: String -> Window -> X (Maybe [CLong])
EDSL for window properties

Allows to specify window properties, such as title, classname or resource, and to check them.

In contrast to ManageHook properties, these are instances of Show and Read, so they can be used in layout definitions etc. For example usage see XMonad.Layout.IM

data Property Source
Most of the property constructors are quite self-explaining.
Constructors
Title String
ClassName String
Resource String
Role StringWM_WINDOW_ROLE property
And Property Property
Or Property Property
Not Property
Const Bool
show/hide Instances
hasProperty :: Property -> Window -> X BoolSource
Does given window have this property?
focusedHasProperty :: Property -> X BoolSource
Does the focused window have this property?
allWithProperty :: Property -> X [Window]Source
Find all existing windows with specified property
propertyToQuery :: Property -> Query BoolSource
Convert property to Query Bool (see XMonad.ManageHook)
Helper functions
getProp32 :: Atom -> Window -> X (Maybe [CLong])Source
Get a window property from atom
getProp32s :: String -> Window -> X (Maybe [CLong])Source
Get a window property from string
Produced by Haddock version 2.4.2