CopyWindow: haddock updates

This commit is contained in:
Brent Yorgey 2007-11-23 20:06:43 +00:00
parent 11a24393fe
commit efb59f06f8

View File

@ -29,10 +29,13 @@ import XMonad.Operations ( windows, kill )
import XMonad.StackSet import XMonad.StackSet
-- $usage -- $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 -- > import XMonad.Actions.CopyWindow
-- --
-- Then add something like this to your keybindings:
--
-- > -- mod-[1..9] @@ Switch to workspace N -- > -- mod-[1..9] @@ Switch to workspace N
-- > -- mod-shift-[1..9] @@ Move client to workspace N -- > -- mod-shift-[1..9] @@ Move client to workspace N
-- > -- mod-control-shift-[1..9] @@ Copy 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 ..] -- > | (i, k) <- zip workspaces [xK_1 ..]
-- > , (f, m) <- [(view, 0), (shift, shiftMask), (copy, shiftMask .|. controlMask)]] -- > , (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: -- removes it from the current workspace, if it's present elsewhere:
-- --
-- > , ((modMask .|. shiftMask, xK_c ), kill1) -- @@ Close the focused window -- > , ((modMask .|. shiftMask, xK_c ), kill1) -- @@ Close the focused window
--
-- %import XMonad.Actions.CopyWindow -- For detailed instructions on editing your key bindings, see
-- %keybind -- comment out default close window binding above if you uncomment this: -- "XMonad.Doc.Extending#Editing_key_bindings".
-- %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)]]
-- | copy. Copy the focussed window to a new workspace. -- | copy. Copy the focussed window to a new workspace.
copy :: WorkspaceId -> WindowSet -> WindowSet copy :: WorkspaceId -> WindowSet -> WindowSet