xmonad-contrib-0.16.999: Third party extensions for xmonad
Copyright(c) Robin Oberschweiber <mephory@mephory.com>
LicenseBSD-style (see LICENSE)
MaintainerRobin Obercshweiber <mephory@mephory.com>
Stabilityunstable
Portabilityunportable
Safe HaskellNone
LanguageHaskell98

XMonad.Util.DynamicScratchpads

Contents

Description

Dynamically declare any window as a scratchpad.

Synopsis

Usage

Allows you to dynamically declare windows as scratchpads. You can bind a key to make a window start/stop being a scratchpad, and another key to spawn/hide that scratchpad.

Like with XMonad.Util.NamedScratchpad, you have to have a workspace called NSP, where hidden scratchpads will be moved to.

You can declare dynamic scrachpads in your xmonad.hs like so:

import XMonad.Util.DynamicScratchpads

, ((modm .|. shiftMask, xK_a), withFocused $ makeDynamicSP "dyn1") , ((modm .|. shiftMask, xK_b), withFocused $ makeDynamicSP "dyn2") , ((modm , xK_a), spawnDynamicSP "dyn1") , ((modm , xK_b), spawnDynamicSP "dyn2")

makeDynamicSP Source #

Arguments

:: String

Scratchpad name

-> Window

Window to be made a scratchpad

-> X () 

Makes a window a dynamic scratchpad with the given name, or stop a window | from being a dynamic scratchpad, if it already is.

spawnDynamicSP Source #

Arguments

:: String

Scratchpad name

-> X () 

Spawn the specified dynamic scratchpad