From 941761b8f69c441d7fdac657c5f8a30ae92f2297 Mon Sep 17 00:00:00 2001 From: dave Date: Sun, 10 Jun 2007 11:10:56 +0200 Subject: greedydoc Add documentation on how to use GreedyView as your default workspace switcher. darcs-hash:20070610091056-2e71c-d1015cc45ed01796195c5e90222eb2eaa16d5ca2.gz --- GreedyView.hs | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'GreedyView.hs') 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 -- cgit v1.2.3