aboutsummaryrefslogtreecommitdiffstats
path: root/GreedyView.hs
diff options
context:
space:
mode:
authordave <dave@nullcube.com>2007-06-10 11:10:56 +0200
committerdave <dave@nullcube.com>2007-06-10 11:10:56 +0200
commit941761b8f69c441d7fdac657c5f8a30ae92f2297 (patch)
treefe5b4e9c28b53e68b2ce508ed885cf1887dc6246 /GreedyView.hs
parent33dc139f7e1704b5241b860e0f45485b5ed3d4d5 (diff)
downloadXMonadContrib-941761b8f69c441d7fdac657c5f8a30ae92f2297.tar.gz
XMonadContrib-941761b8f69c441d7fdac657c5f8a30ae92f2297.tar.xz
XMonadContrib-941761b8f69c441d7fdac657c5f8a30ae92f2297.zip
greedydoc
Add documentation on how to use GreedyView as your default workspace switcher. darcs-hash:20070610091056-2e71c-d1015cc45ed01796195c5e90222eb2eaa16d5ca2.gz
Diffstat (limited to 'GreedyView.hs')
-rw-r--r--GreedyView.hs21
1 files changed, 21 insertions, 0 deletions
diff --git a/GreedyView.hs b/GreedyView.hs
index 275f44c..3303799 100644
--- a/GreedyView.hs
+++ b/GreedyView.hs
@@ -1,6 +1,27 @@
-- 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,
+--
+-- Add this import :
+--
+-- import XMonadContrib.GreedyView
+--
+-- And replace the function call used to switch workspaces,
+--
+-- this :
+--
+-- [((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)]]
+--
module XMonadContrib.GreedyView (greedyView) where