Copyright | (c) Robin Oberschweiber <mephory@mephory.com> |
---|---|
License | BSD-style (see LICENSE) |
Maintainer | Robin Obercshweiber <mephory@mephory.com> |
Stability | unstable |
Portability | unportable |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Deprecated: Use the dynamic scratchpad facility of XMonad.Util.NamedScratchpad instead.
Dynamically declare any window as a scratchpad.
Synopsis
- makeDynamicSP :: String -> Window -> X ()
- spawnDynamicSP :: String -> X ()
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 scratchpads 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")
Makes a window a dynamic scratchpad with the given name, or stop a window | from being a dynamic scratchpad, if it already is.