xmonad-0.18.0.9: A tiling window manager
Copyright(c) Spencer Janssen 2007
LicenseBSD3-style (see LICENSE)
Maintainerspencerjanssen@gmail.com
Stabilityunstable
Safe HaskellSafe-Inferred
LanguageHaskell2010

XMonad.ManageHook

Description

An EDSL for ManageHooks

Synopsis

Documentation

liftX :: X a -> Query a Source #

Lift an X action to a Query.

idHook :: Monoid m => m Source #

The identity hook that returns the WindowSet unchanged.

(<+>) :: Monoid m => m -> m -> m Source #

Infix mappend. Compose two ManageHook from right to left.

composeAll :: Monoid m => [m] -> m Source #

Compose the list of ManageHooks.

(-->) :: (Monad m, Monoid a) => m Bool -> m a -> m a infix 0 Source #

p --> x. If p returns True, execute the ManageHook.

(-->) :: Monoid m => Query Bool -> Query m -> Query m -- a simpler type

(=?) :: Eq a => Query a -> a -> Query Bool Source #

q =? x. if the result of q equals x, return True.

(<&&>) :: Monad m => m Bool -> m Bool -> m Bool infixr 3 Source #

&& lifted to a Monad.

(<||>) :: Monad m => m Bool -> m Bool -> m Bool infixr 3 Source #

|| lifted to a Monad.

title :: Query String Source #

Return the window title; i.e., the string returned by _NET_WM_NAME, or failing that, the string returned by WM_NAME.

appName :: Query String Source #

Return the application name; i.e., the first string returned by WM_CLASS.

resource :: Query String Source #

Backwards compatible alias for appName.

className :: Query String Source #

Return the resource class; i.e., the second string returned by WM_CLASS.

stringProperty :: String -> Query String Source #

A query that can return an arbitrary X property of type String, identified by name. Works for ASCII strings only. For the properties _NET_WM_NAME/WM_NAME and WM_CLASS the specialised variants title and appName/className are preferred.

willFloat :: Query Bool Source #

Return whether the window will be a floating window or not

doF :: (s -> s) -> Query (Endo s) Source #

Modify the WindowSet with a pure function.

doFloat :: ManageHook Source #

Move the window to the floating layer.

doIgnore :: ManageHook Source #

Map the window and remove it from the WindowSet.

doShift :: WorkspaceId -> ManageHook Source #

Move the window to a given workspace