aboutsummaryrefslogtreecommitdiffstats
path: root/XMonad
diff options
context:
space:
mode:
authorBrent Yorgey <byorgey@gmail.com>2007-11-23 21:06:43 +0100
committerBrent Yorgey <byorgey@gmail.com>2007-11-23 21:06:43 +0100
commita6f0b645c81334dcb9461e288f8d15ff8fd535df (patch)
tree4c27cc120b0f749dc32be58459831ff462e3b692 /XMonad
parentccaefff387102ab534e4c0456cb863b593a88047 (diff)
downloadXMonadContrib-a6f0b645c81334dcb9461e288f8d15ff8fd535df.tar.gz
XMonadContrib-a6f0b645c81334dcb9461e288f8d15ff8fd535df.tar.xz
XMonadContrib-a6f0b645c81334dcb9461e288f8d15ff8fd535df.zip
CopyWindow: haddock updates
darcs-hash:20071123200643-bd4d7-8acf3b6b7e3f02f037c9484ebbadc2fb2692bd36.gz
Diffstat (limited to 'XMonad')
-rw-r--r--XMonad/Actions/CopyWindow.hs23
1 files changed, 9 insertions, 14 deletions
diff --git a/XMonad/Actions/CopyWindow.hs b/XMonad/Actions/CopyWindow.hs
index ea9b228..f603415 100644
--- a/XMonad/Actions/CopyWindow.hs
+++ b/XMonad/Actions/CopyWindow.hs
@@ -29,10 +29,13 @@ import XMonad.Operations ( windows, kill )
import XMonad.StackSet
-- $usage
--- You can use this module with the following in your Config.hs file:
---
+--
+-- You can use this module with the following in your @~\/.xmonad\/xmonad.hs@ file:
+--
-- > import XMonad.Actions.CopyWindow
--
+-- Then add something like this to your keybindings:
+--
-- > -- mod-[1..9] @@ Switch to workspace N
-- > -- mod-shift-[1..9] @@ Move client to workspace N
-- > -- mod-control-shift-[1..9] @@ Copy client to workspace N
@@ -40,21 +43,13 @@ import XMonad.StackSet
-- > | (i, k) <- zip workspaces [xK_1 ..]
-- > , (f, m) <- [(view, 0), (shift, shiftMask), (copy, shiftMask .|. controlMask)]]
--
--- you may also wish to redefine the binding to kill a window so it only
+-- You may also wish to redefine the binding to kill a window so it only
-- removes it from the current workspace, if it's present elsewhere:
--
-- > , ((modMask .|. shiftMask, xK_c ), kill1) -- @@ Close the focused window
-
--- %import XMonad.Actions.CopyWindow
--- %keybind -- comment out default close window binding above if you uncomment this:
--- %keybind , ((modMask .|. shiftMask, xK_c ), kill1) -- @@ Close the focused window
--- %keybindlist ++
--- %keybindlist -- mod-[1..9] @@ Switch to workspace N
--- %keybindlist -- mod-shift-[1..9] @@ Move client to workspace N
--- %keybindlist -- mod-control-shift-[1..9] @@ Copy client to workspace N
--- %keybindlist [((m .|. modMask, k), f i)
--- %keybindlist | (i, k) <- zip workspaces [xK_1 ..]
--- %keybindlist , (f, m) <- [(view, 0), (shift, shiftMask), (copy, shiftMask .|. controlMask)]]
+--
+-- For detailed instructions on editing your key bindings, see
+-- "XMonad.Doc.Extending#Editing_key_bindings".
-- | copy. Copy the focussed window to a new workspace.
copy :: WorkspaceId -> WindowSet -> WindowSet