aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrea Rossato <andrea.rossato@unibz.it>2007-06-14 16:42:25 +0200
committerAndrea Rossato <andrea.rossato@unibz.it>2007-06-14 16:42:25 +0200
commit0cfb18153271f78d5e58e18960da3ef9cd161b02 (patch)
tree7afabae3d29c0392916d878cf1543f82623cefe0
parent3e56117003d800ecae0f1027881f166e630ac255 (diff)
downloadXMonadContrib-0cfb18153271f78d5e58e18960da3ef9cd161b02.tar.gz
XMonadContrib-0cfb18153271f78d5e58e18960da3ef9cd161b02.tar.xz
XMonadContrib-0cfb18153271f78d5e58e18960da3ef9cd161b02.zip
RotView.hs: info and documentation
darcs-hash:20070614144225-32816-170dbed32e03a6c24e9ab841ffcbbcb208934d8f.gz
-rw-r--r--RotView.hs32
1 files changed, 25 insertions, 7 deletions
diff --git a/RotView.hs b/RotView.hs
index 6a8fc7f..1ca0b92 100644
--- a/RotView.hs
+++ b/RotView.hs
@@ -1,12 +1,22 @@
-module XMonadContrib.RotView ( rotView ) where
-
+-----------------------------------------------------------------------------
+-- |
+-- Module : XMonadContrib.RotView
+-- Copyright : (c) David Roundy <droundy@darcs.net>
+-- License : BSD3-style (see LICENSE)
+--
+-- Maintainer : David Roundy <droundy@darcs.net>
+-- Stability : unstable
+-- Portability : unportable
+--
-- Provides bindings to cycle through non-empty workspaces.
+--
+-----------------------------------------------------------------------------
--- To use:
--- import XMonadContrib.RotView
-
--- , ((modMask .|. shiftMask, xK_Right), rotView True)
--- , ((modMask .|. shiftMask, xK_Left), rotView False)
+module XMonadContrib.RotView (
+ -- * Usage
+ -- $usage
+ rotView
+ ) where
import Control.Monad.State ( gets )
import Data.List ( sortBy )
@@ -16,6 +26,14 @@ import XMonad
import StackSet hiding (filter)
import qualified Operations as O
+-- $usage
+-- You can use this module with the following in your Config.hs file:
+--
+-- > import XMonadContrib.RotView
+--
+-- > , ((modMask .|. shiftMask, xK_Right), rotView True)
+-- > , ((modMask .|. shiftMask, xK_Left), rotView False)
+
rotView :: Bool -> X ()
rotView b = do
ws <- gets windowset