xmonad-contrib-0.5: Third party extensions for xmonadSource codeContentsIndex
XMonad.Actions.CycleWS
Portabilityunportable
Stabilityunstable
MaintainerJoachim Breitner <mail@joachim-breitner.de>
Contents
Usage
Description
Provides bindings to cycle forward or backward through the list of workspaces, and to move windows there.
Synopsis
nextWS :: X ()
prevWS :: X ()
shiftToNext :: X ()
shiftToPrev :: X ()
toggleWS :: X ()
Usage

You can use this module with the following in your ~/.xmonad/xmonad.hs file:

 import XMonad.Actions.CycleWS
   , ((modMask x,               xK_Right), nextWS)
   , ((modMask x,               xK_Left),  prevWS)
   , ((modMask x .|. shiftMask, xK_Right), shiftToNext)
   , ((modMask x .|. shiftMask, xK_Left),  shiftToPrev)
   , ((modMask x,               xK_t),     toggleWS)

If you want to follow the moved window, you can use both actions:

   , ((modMask x .|. shiftMask, xK_Right), shiftToNext >> nextWS)
   , ((modMask x .|. shiftMask, xK_Left),  shiftToPrev >> prevWS)

For detailed instructions on editing your key bindings, see XMonad.Doc.Extending#Editing_key_bindings.

nextWS :: X ()Source
Switch to next workspace
prevWS :: X ()Source
Switch to previous workspace
shiftToNext :: X ()Source
Move focused window to next workspace
shiftToPrev :: X ()Source
Move focused window to previous workspace
toggleWS :: X ()Source
Toggle to the workspace displayed previously
Produced by Haddock version 2.3.0