From 7bd6953e1b9838f796b4e9a3668b44eb4d610106 Mon Sep 17 00:00:00 2001 From: Brent Yorgey Date: Tue, 27 Nov 2007 19:57:41 +0100 Subject: RotView: haddock updates darcs-hash:20071127185741-bd4d7-440e0485cba3e32a171954ada89a1ad2df4eaaad.gz --- XMonad/Actions/RotView.hs | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) (limited to 'XMonad/Actions/RotView.hs') diff --git a/XMonad/Actions/RotView.hs b/XMonad/Actions/RotView.hs index 6d4f8ea..794d717 100644 --- a/XMonad/Actions/RotView.hs +++ b/XMonad/Actions/RotView.hs @@ -28,17 +28,22 @@ import XMonad.StackSet hiding (filter) import XMonad.Operations -- $usage --- You can use this module with the following in your Config.hs file: +-- +-- You can use this module with the following in your @~\/.xmonad\/xmonad.hs@: -- -- > import XMonad.Actions.RotView -- --- > , ((modMask .|. shiftMask, xK_Right), rotView True) --- > , ((modMask .|. shiftMask, xK_Left), rotView False) - --- %import XMonad.Actions.RotView --- %keybind , ((modMask .|. shiftMask, xK_Right), rotView True) --- %keybind , ((modMask .|. shiftMask, xK_Left), rotView False) +-- Then add appropriate key bindings, such as: +-- +-- > , ((modMask x .|. shiftMask, xK_Right), rotView True) +-- > , ((modMask x .|. shiftMask, xK_Left), rotView False) +-- +-- For detailed instructions on editing your key bindings, see +-- "XMonad.Doc.Extending#Editing_key_bindings". +-- | Cycle through non-empty workspaces. True --> cycle in the forward +-- direction. Note that workspaces cycle in order by tag, so if your +-- workspaces are not in tag-order, the cycling might seem wonky. rotView :: Bool -> X () rotView forward = do ws <- gets windowset -- cgit v1.2.3