From 0f4a6edbc5a9602515147700a18a0e85a6552da8 Mon Sep 17 00:00:00 2001 From: Brent Yorgey Date: Tue, 27 Nov 2007 20:39:48 +0100 Subject: WindowBringer: haddock updates darcs-hash:20071127193948-bd4d7-daee12c89cbf341793e8f5a2559fe2f5b107d372.gz --- XMonad/Actions/WindowBringer.hs | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'XMonad/Actions') diff --git a/XMonad/Actions/WindowBringer.hs b/XMonad/Actions/WindowBringer.hs index bec4f0a..7ce8391 100644 --- a/XMonad/Actions/WindowBringer.hs +++ b/XMonad/Actions/WindowBringer.hs @@ -34,18 +34,18 @@ import XMonad.Util.NamedWindows (getName) -- $usage -- --- Place in your Config.hs: +-- Import the module into your @~\/.xmonad\/xmonad.hs@: -- -- > import XMonad.Actions.WindowBringer -- --- and in the keys definition: +-- and define appropriate key bindings: -- --- > , ((modMask .|. shiftMask, xK_g ), gotoMenu) --- > , ((modMask .|. shiftMask, xK_b ), bringMenu) +-- > , ((modMask x .|. shiftMask, xK_g ), gotoMenu) +-- > , ((modMask x .|. shiftMask, xK_b ), bringMenu) +-- +-- For detailed instructions on editing your key bindings, see +-- "XMonad.Doc.Extending#Editing_key_bindings". --- %import XMonad.Actions.WindowBringer --- %keybind , ((modMask .|. shiftMask, xK_g ), gotoMenu) --- %keybind , ((modMask .|. shiftMask, xK_b ), bringMenu) -- | Pops open a dmenu with window titles. Choose one, and you will be -- taken to the corresponding workspace. @@ -65,8 +65,8 @@ bringMenu = windowMap >>= actionMenu (windows . bringWindow) actionMenu :: (a -> X ()) -> M.Map String a -> X () actionMenu action windowMap = dmenuMap windowMap >>= flip X.whenJust action --- | Generates a Map from window name to . For use with --- dmenuMap. +-- | Generates a Map from window name to \. For +-- use with dmenuMap. windowMapWith :: ((X.WindowSpace, Window) -> a) -> X (M.Map String a) windowMapWith value = do -- TODO: extract the pure, creamy center. ws <- gets X.windowset -- cgit v1.2.3