xmonad-contrib-0.5: Third party extensions for xmonadSource codeContentsIndex
XMonad.Layout.WindowNavigation
Portabilityunportable
Stabilityunstable
MaintainerDavid Roundy <droundy@darcs.net>
Contents
Usage
Description
WindowNavigation is an extension to allow easy navigation of a workspace.
Synopsis
windowNavigation :: LayoutClass l a => l a -> ModifiedLayout WindowNavigation l a
configurableNavigation :: LayoutClass l a => WNConfig -> l a -> ModifiedLayout WindowNavigation l a
data Navigate
= Go Direction
| Swap Direction
| Move Direction
data Direction
= U
| D
| R
| L
data MoveWindowToWindow a = MoveWindowToWindow a a
navigateColor :: String -> WNConfig
navigateBrightness :: Double -> WNConfig
noNavigateBorders :: WNConfig
defaultWNConfig :: WNConfig
Usage

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

 import XMonad.Layout.WindowNavigation

Then edit your layoutHook by adding the WindowNavigation layout modifier to some layout:

 myLayouts = windowNavigation (Tall 1 (3/100) (1/2))  ||| Full ||| etc..
 main = xmonad defaultConfig { layoutHook = myLayouts }

For more detailed instructions on editing the layoutHook see:

XMonad.Doc.Extending#Editing_the_layout_hook

In keybindings:

    , ((modMask x,                 xK_Right), sendMessage $ Go R)
    , ((modMask x,                 xK_Left ), sendMessage $ Go L)
    , ((modMask x,                 xK_Up   ), sendMessage $ Go U)
    , ((modMask x,                 xK_Down ), sendMessage $ Go D)
    , ((modMask x .|. controlMask, xK_Right), sendMessage $ Swap R)
    , ((modMask x .|. controlMask, xK_Left ), sendMessage $ Swap L)
    , ((modMask x .|. controlMask, xK_Up   ), sendMessage $ Swap U)
    , ((modMask x .|. controlMask, xK_Down ), sendMessage $ Swap D)

For detailed instruction on editing the key binding see:

XMonad.Doc.Extending#Editing_key_bindings.

windowNavigation :: LayoutClass l a => l a -> ModifiedLayout WindowNavigation l aSource
configurableNavigation :: LayoutClass l a => WNConfig -> l a -> ModifiedLayout WindowNavigation l aSource
data Navigate Source
Constructors
Go Direction
Swap Direction
Move Direction
show/hide Instances
data Direction Source
Constructors
U
D
R
L
show/hide Instances
data MoveWindowToWindow a Source
Constructors
MoveWindowToWindow a a
show/hide Instances
navigateColor :: String -> WNConfigSource
navigateBrightness :: Double -> WNConfigSource
noNavigateBorders :: WNConfigSource
defaultWNConfig :: WNConfigSource
Produced by Haddock version 2.3.0