aboutsummaryrefslogtreecommitdiffstats
path: root/XMonad/Actions/SwapWorkspaces.hs
diff options
context:
space:
mode:
authorBrent Yorgey <byorgey@gmail.com>2007-11-27 20:26:34 +0100
committerBrent Yorgey <byorgey@gmail.com>2007-11-27 20:26:34 +0100
commitab391999fabbb5d826e20fedf79dbade366cfdfd (patch)
tree350dac70b7ed74cd60b719e414fa1b4e875a4196 /XMonad/Actions/SwapWorkspaces.hs
parentf0561a19b5aec2a9d0ac468008eaacfe6c5c4966 (diff)
downloadXMonadContrib-ab391999fabbb5d826e20fedf79dbade366cfdfd.tar.gz
XMonadContrib-ab391999fabbb5d826e20fedf79dbade366cfdfd.tar.xz
XMonadContrib-ab391999fabbb5d826e20fedf79dbade366cfdfd.zip
SwapWorkspaces: haddock updates
darcs-hash:20071127192634-bd4d7-e08eecebd6236e7ed586decac443a68ec9e5a912.gz
Diffstat (limited to 'XMonad/Actions/SwapWorkspaces.hs')
-rw-r--r--XMonad/Actions/SwapWorkspaces.hs15
1 files changed, 7 insertions, 8 deletions
diff --git a/XMonad/Actions/SwapWorkspaces.hs b/XMonad/Actions/SwapWorkspaces.hs
index 3f0ca35..e4284bf 100644
--- a/XMonad/Actions/SwapWorkspaces.hs
+++ b/XMonad/Actions/SwapWorkspaces.hs
@@ -22,24 +22,23 @@ module XMonad.Actions.SwapWorkspaces (
import XMonad.StackSet
+
-- $usage
--- Add this import to your Config.hs:
+-- Add this import to your @~\/.xmonad\/xmonad.hs@:
--
-- > import XMonad.Actions.SwapWorkspaces
--
--- Throw this in your keys definition:
+-- Then throw something like this in your keys definition:
--
-- > ++
--- > [((modMask .|. controlMask, k), windows $ swapWithCurrent i)
+-- > [((modMask x .|. controlMask, k), windows $ swapWithCurrent i)
-- > | (i, k) <- zip workspaces [xK_1 ..]]
-
--- %import XMonad.Actions.SwapWorkspaces
--- %keybindlist ++
--- %keybindlist [((modMask .|. controlMask, k), windows $ swapWithCurrent i)
--- %keybindlist | (i, k) <- zip workspaces [xK_1 ..]]
--
-- After installing this update, if you're on workspace 1, hitting mod-ctrl-5
-- will swap workspaces 1 and 5.
+--
+-- For detailed instructions on editing your key bindings, see
+-- "XMonad.Doc.Extending#Editing_key_bindings".
-- | Swaps the currently focused workspace with the given workspace tag, via
-- @swapWorkspaces@.