From a6f0b645c81334dcb9461e288f8d15ff8fd535df Mon Sep 17 00:00:00 2001 From: Brent Yorgey Date: Fri, 23 Nov 2007 21:06:43 +0100 Subject: CopyWindow: haddock updates darcs-hash:20071123200643-bd4d7-8acf3b6b7e3f02f037c9484ebbadc2fb2692bd36.gz --- XMonad/Actions/CopyWindow.hs | 23 +++++++++-------------- 1 file changed, 9 insertions(+), 14 deletions(-) (limited to 'XMonad/Actions/CopyWindow.hs') 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 -- cgit v1.2.3