aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrea Rossato <andrea.rossato@unibz.it>2007-06-14 16:39:53 +0200
committerAndrea Rossato <andrea.rossato@unibz.it>2007-06-14 16:39:53 +0200
commit4132469d520fb3c14ce3101e9ba4cb41a7b7c681 (patch)
tree7a2bf582b839777d1376dfd1b023b1fa786ce560
parent0d811cf00548528137f52b6119ba1f2affac88fd (diff)
downloadXMonadContrib-4132469d520fb3c14ce3101e9ba4cb41a7b7c681.tar.gz
XMonadContrib-4132469d520fb3c14ce3101e9ba4cb41a7b7c681.tar.xz
XMonadContrib-4132469d520fb3c14ce3101e9ba4cb41a7b7c681.zip
GreedyView.hs: info and documentation
darcs-hash:20070614143953-32816-28ccd93d69cf7c2688277df88876118c2a226760.gz
-rw-r--r--GreedyView.hs55
1 files changed, 35 insertions, 20 deletions
diff --git a/GreedyView.hs b/GreedyView.hs
index 4904fba..a08fc3f 100644
--- a/GreedyView.hs
+++ b/GreedyView.hs
@@ -1,38 +1,53 @@
{-# OPTIONS -fglasgow-exts #-}
--- Maintainer: Spencer Janssen <sjanssen@cse.unl.edu>
+-----------------------------------------------------------------------------
+-- |
+-- Module : XMonadContrib.FindEmptyWorkspace
+-- Copyright : (c) Spencer Janssen <sjanssen@cse.unl.edu>
+-- License : BSD3-style (see LICENSE)
--
--- greedyView is an alternative to standard workspace switching. When a
--- workspace is already visible on another screen, greedyView swaps the
+-- Maintainer : Spencer Janssen <sjanssen@cse.unl.edu>
+-- Stability : unstable
+-- Portability : unportable
+--
+-- GreedyView is an alternative to standard workspace switching. When a
+-- workspace is already visible on another screen, GreedyView swaps the
-- contents of that other screen with the current screen.
--
--- To use GreedyView as your default workspace switcher,
+-----------------------------------------------------------------------------
+
+module XMonadContrib.GreedyView (
+ -- * Usage
+ -- $usage
+ greedyView
+ ) where
+
+import StackSet as W hiding (filter)
+import XMonad
+import Operations
+import Data.List (find)
+
+-- $usage
+-- To use GreedyView as your default workspace switcher
--
--- Add this import :
+-- Add this import:
--
--- import XMonadContrib.GreedyView
+-- > import XMonadContrib.GreedyView
--
-- And replace the function call used to switch workspaces,
--
--- this :
+-- this:
--
--- [((m .|. modMask, k), f i)
--- | (i, k) <- zip [0 .. fromIntegral workspaces - 1] [xK_1 ..]
--- , (f, m) <- [(view, 0), (shift, shiftMask)]]
+-- > [((m .|. modMask, k), f i)
+-- > | (i, k) <- zip [0 .. fromIntegral workspaces - 1] [xK_1 ..]
+-- > , (f, m) <- [(view, 0), (shift, shiftMask)]]
--
-- becomes this :
--
--- [((m .|. modMask, k), f i)
--- | (i, k) <- zip [0 .. fromIntegral workspaces - 1] [xK_1 ..]
--- , (f, m) <- [(greedyView, 0), (shift, shiftMask)]]
+-- > [((m .|. modMask, k), f i)
+-- > | (i, k) <- zip [0 .. fromIntegral workspaces - 1] [xK_1 ..]
+-- > , (f, m) <- [(greedyView, 0), (shift, shiftMask)]]
--
-module XMonadContrib.GreedyView (greedyView) where
-
-import StackSet as W hiding (filter)
-import XMonad
-import Operations
-import Data.List (find)
-
greedyView :: WorkspaceId -> X ()
greedyView = windows . greedyView'