Copyright | (c) 2020 Ivan Brennan <ivanbrennan@gmail.com> |
---|---|
License | BSD3-style (see LICENSE) |
Maintainer | Ivan Brennan <ivanbrennan@gmail.com> |
Stability | stable |
Portability | unportable |
Safe Haskell | Safe-Inferred |
Language | Haskell98 |
Functions for sifting windows up and down. Sifts behave identically to
swaps (i.e. swapUp
and swapDown
from XMonad.StackSet), except in
the wrapping case: rather than rotating the entire stack by one position
like a swap would, a sift causes the windows at either end of the stack
to trade positions.
Usage
You can use this module with the following in your ~/.xmonad/xmonad.hs
:
import XMonad.Actions.Sift
and add keybindings such as the following:
, ((modMask .|. shiftMask, xK_j ), windows siftDown) , ((modMask .|. shiftMask, xK_k ), windows siftUp )