xmonad-contrib-0.18.0: Community-maintained extensions for xmonad

Copyright | (c) Hans Philipp Annen <haphi@gmx.net> Mischa Dieterle <der_m@freenet.de>
License | BSD3-style (see LICENSE)
Maintainer | Hans Philipp Annen <haphi@gmx.net>
Stability | stable
Portability | unportable
Safe Haskell | Safe-Inferred
Language | Haskell2010

XMonad.Actions.RotSlaves

Contents

- Generic list rotations

Description

Rotate all windows except the master window and keep the focus in place.

Synopsis

- rotSlaves' :: ([a] -> [a]) -> Stack a -> Stack a
- rotSlavesUp :: X ()
- rotSlavesDown :: X ()
- rotAll' :: ([a] -> [a]) -> Stack a -> Stack a
- rotAllUp :: X ()
- rotAllDown :: X ()
- rotUp :: [a] -> [a]
- rotDown :: [a] -> [a]

# Documentation

To use this module, import it with:

    import XMonad.Actions.RotSlaves

and add whatever keybindings you would like, for example:

    , ((modm .|. shiftMask, xK_Tab   ), rotSlavesUp)

This operation will rotate all windows except the master window, while the focus stays where it is. It is useful together with the TwoPane layout (see XMonad.Layout.TwoPane).

For detailed instructions on editing your key bindings, see the tutorial.

rotSlaves' :: ([a] -> [a]) -> Stack a -> Stack a Source #

The actual rotation, as a pure function on the window stack.

rotSlavesUp :: X () Source #

Rotate the windows in the current stack, excluding the first one (master).

rotSlavesDown :: X () Source #

Rotate the windows in the current stack, excluding the first one (master).

rotAll' :: ([a] -> [a]) -> Stack a -> Stack a Source #

The actual rotation, as a pure function on the window stack.

rotAllUp :: X () Source #

Rotate all the windows in the current stack.

rotAllDown :: X () Source #

Rotate all the windows in the current stack.

# Generic list rotations

Generic list rotations such that `rotUp [1..4]` is equivalent to `[2,3,4,1]` and `rotDown [1..4]` to `[4,1,2,3]`. They both are `id` for null or singleton lists.

rotUp :: [a] -> [a] Source #

rotDown :: [a] -> [a] Source #