mirror of
https://github.com/xmonad/xmonad-contrib.git
synced 2025-05-19 11:30:22 -07:00
WindowBringer: haddock updates
This commit is contained in:
parent
3a6e31a64f
commit
d6af9405ba
@ -34,18 +34,18 @@ import XMonad.Util.NamedWindows (getName)
|
|||||||
|
|
||||||
-- $usage
|
-- $usage
|
||||||
--
|
--
|
||||||
-- Place in your Config.hs:
|
-- Import the module into your @~\/.xmonad\/xmonad.hs@:
|
||||||
--
|
--
|
||||||
-- > import XMonad.Actions.WindowBringer
|
-- > import XMonad.Actions.WindowBringer
|
||||||
--
|
--
|
||||||
-- and in the keys definition:
|
-- and define appropriate key bindings:
|
||||||
--
|
--
|
||||||
-- > , ((modMask .|. shiftMask, xK_g ), gotoMenu)
|
-- > , ((modMask x .|. shiftMask, xK_g ), gotoMenu)
|
||||||
-- > , ((modMask .|. shiftMask, xK_b ), bringMenu)
|
-- > , ((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
|
-- | Pops open a dmenu with window titles. Choose one, and you will be
|
||||||
-- taken to the corresponding workspace.
|
-- taken to the corresponding workspace.
|
||||||
@ -65,8 +65,8 @@ bringMenu = windowMap >>= actionMenu (windows . bringWindow)
|
|||||||
actionMenu :: (a -> X ()) -> M.Map String a -> X ()
|
actionMenu :: (a -> X ()) -> M.Map String a -> X ()
|
||||||
actionMenu action windowMap = dmenuMap windowMap >>= flip X.whenJust action
|
actionMenu action windowMap = dmenuMap windowMap >>= flip X.whenJust action
|
||||||
|
|
||||||
-- | Generates a Map from window name to <whatever you specify>. For use with
|
-- | Generates a Map from window name to \<whatever you specify\>. For
|
||||||
-- dmenuMap.
|
-- use with dmenuMap.
|
||||||
windowMapWith :: ((X.WindowSpace, Window) -> a) -> X (M.Map String a)
|
windowMapWith :: ((X.WindowSpace, Window) -> a) -> X (M.Map String a)
|
||||||
windowMapWith value = do -- TODO: extract the pure, creamy center.
|
windowMapWith value = do -- TODO: extract the pure, creamy center.
|
||||||
ws <- gets X.windowset
|
ws <- gets X.windowset
|
||||||
|
Loading…
x
Reference in New Issue
Block a user