diff options
author | Brent Yorgey <byorgey@gmail.com> | 2007-11-27 20:13:18 +0100 |
---|---|---|
committer | Brent Yorgey <byorgey@gmail.com> | 2007-11-27 20:13:18 +0100 |
commit | 5b1b3280ddcc465db6bb148c2d6a0df9fe516df8 (patch) | |
tree | 7e012ce334841941b1eda3b9a6b4baebdd66fabf /XMonad | |
parent | 6d2e72dd59dbaea10db6c9c4880a7079068035d5 (diff) | |
download | XMonadContrib-5b1b3280ddcc465db6bb148c2d6a0df9fe516df8.tar.gz XMonadContrib-5b1b3280ddcc465db6bb148c2d6a0df9fe516df8.tar.xz XMonadContrib-5b1b3280ddcc465db6bb148c2d6a0df9fe516df8.zip |
SinkAll: haddock updates
darcs-hash:20071127191318-bd4d7-2974e5444a22be42c418260f8beffd733a01b1e3.gz
Diffstat (limited to 'XMonad')
-rw-r--r-- | XMonad/Actions/SinkAll.hs | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/XMonad/Actions/SinkAll.hs b/XMonad/Actions/SinkAll.hs index 87cb206..e5eee4b 100644 --- a/XMonad/Actions/SinkAll.hs +++ b/XMonad/Actions/SinkAll.hs @@ -15,24 +15,28 @@ module XMonad.Actions.SinkAll ( sinkAll) where import XMonad.Operations -import XMonad +import XMonad.Core import XMonad.StackSet import Graphics.X11.Xlib - -- $usage +-- +-- You can use this module with the following in your @~\/.xmonad\/xmonad.hs@: +-- -- > import XMonad.Actions.SinkAll --- > keys x = [ ((modMask x .|. shiftMask, xK_t), sinkAll) ] -- --- where 'x' is your XConfig. - --- %import XMonad.Actions.SinkAll --- %keybind , ((modMask x .|. shiftMask, xK_t), sinkAll) +-- then add a keybinding; for example: +-- +-- , ((modMask x .|. shiftMask, xK_t), sinkAll) +-- +-- For detailed instructions on editing your key bindings, see +-- "XMonad.Doc.Extending#Editing_key_bindings". +-- | Un-float all floating windows on the current workspace. sinkAll :: X () sinkAll = withAll sink --- Apply a function to all windows on current workspace. +-- | Apply a function to all windows on current workspace. withAll :: (Window -> WindowSet -> WindowSet) -> X () withAll f = windows $ \ws -> let all' = integrate' . stack . workspace . current $ ws in foldr f ws all' |