xmonad-contrib-0.16.999: Community-maintained extensions extensions for xmonad
Copyright(c) 2007 David Roundy <droundy@darcs.net>
LicenseBSD3-style (see LICENSE)
MaintainerDevin Mullins <me@twifkak.com>
Stabilityunstable
Portabilityunportable
Safe HaskellNone
LanguageHaskell98

XMonad.Layout.WindowNavigation

Contents

Description

WindowNavigation is an extension to allow easy navigation of a workspace.

Synopsis

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:

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

For more detailed instructions on editing the layoutHook see:

XMonad.Doc.Extending

In keybindings:

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

For detailed instruction on editing the key binding see:

XMonad.Doc.Extending.

data Navigate Source #

Constructors

Go Direction2D 
Swap Direction2D 
Move Direction2D 
Apply (Window -> X ()) Direction2D

Apply action with destination window

Instances

Instances details
Message Navigate Source # 
Instance details

Defined in XMonad.Layout.WindowNavigation

data Direction2D Source #

Two-dimensional directions:

Constructors

U

Up

D

Down

R

Right

L

Left

Instances

Instances details
Bounded Direction2D Source # 
Instance details

Defined in XMonad.Util.Types

Enum Direction2D Source # 
Instance details

Defined in XMonad.Util.Types

Eq Direction2D Source # 
Instance details

Defined in XMonad.Util.Types

Ord Direction2D Source # 
Instance details

Defined in XMonad.Util.Types

Read Direction2D Source # 
Instance details

Defined in XMonad.Util.Types

Show Direction2D Source # 
Instance details

Defined in XMonad.Util.Types

def :: Default a => a #

The default value for this type.

data WindowNavigation a Source #

Instances

Instances details
LayoutModifier WindowNavigation Window Source # 
Instance details

Defined in XMonad.Layout.WindowNavigation

Read (WindowNavigation a) Source # 
Instance details

Defined in XMonad.Layout.WindowNavigation

Show (WindowNavigation a) Source # 
Instance details

Defined in XMonad.Layout.WindowNavigation