xmonad-contrib-0.6: Third party extensions for xmonadSource codeContentsIndex
MaintainerJoachim Breitner <mail@joachim-breitner.de>
Provides bindings to cycle forward or backward through the list of workspaces, and to move windows there, and to cycle between the screens.
nextWS :: X ()
prevWS :: X ()
shiftToNext :: X ()
shiftToPrev :: X ()
toggleWS :: X ()
nextScreen :: X ()
prevScreen :: X ()
shiftNextScreen :: X ()
shiftPrevScreen :: X ()

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

 import XMonad.Actions.CycleWS
   , ((modMask x,               xK_Down),  nextWS)
   , ((modMask x,               xK_Up),    prevWS)
   , ((modMask x .|. shiftMask, xK_Down),  shiftToNext)
   , ((modMask x .|. shiftMask, xK_Up),    shiftToPrev)
   , ((modMask x,               xK_Right), nextScreen)
   , ((modMask x,               xK_Left),  prevScreen)
   , ((modMask x .|. shiftMask, xK_Right), shiftNextScreen)
   , ((modMask x .|. shiftMask, xK_Left),  shiftPrevScreen)
   , ((modMask x,               xK_t),     toggleWS)

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

   , ((modMask x .|. shiftMask, xK_Down), shiftToNext >> nextWS)
   , ((modMask x .|. shiftMask, xK_Up),   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
nextScreen :: X ()Source
View next screen
prevScreen :: X ()Source
View prev screen
shiftNextScreen :: X ()Source
Move focused window to workspace on next screen
shiftPrevScreen :: X ()Source
Move focused window to workspace on prev screen
Produced by Haddock version 2.3.0