mirror of
https://github.com/xmonad/xmonad-contrib.git
synced 2025-05-19 11:30:22 -07:00
DwmPromote: haddock updates
This commit is contained in:
parent
518cb7432f
commit
b13fd2d464
@ -9,7 +9,7 @@
|
|||||||
-- Portability : unportable
|
-- Portability : unportable
|
||||||
--
|
--
|
||||||
-- Dwm-like swap function for xmonad.
|
-- Dwm-like swap function for xmonad.
|
||||||
--
|
--
|
||||||
-- Swaps focused window with the master window. If focus is in the
|
-- Swaps focused window with the master window. If focus is in the
|
||||||
-- master, swap it with the next window in the stack. Focus stays in the
|
-- master, swap it with the next window in the stack. Focus stays in the
|
||||||
-- master.
|
-- master.
|
||||||
@ -18,7 +18,7 @@
|
|||||||
|
|
||||||
module XMonad.Actions.DwmPromote (
|
module XMonad.Actions.DwmPromote (
|
||||||
-- * Usage
|
-- * Usage
|
||||||
-- $usage
|
-- $usage
|
||||||
dwmpromote
|
dwmpromote
|
||||||
) where
|
) where
|
||||||
|
|
||||||
@ -28,17 +28,20 @@ import XMonad.StackSet
|
|||||||
|
|
||||||
-- $usage
|
-- $usage
|
||||||
--
|
--
|
||||||
-- To use, modify your Config.hs to:
|
-- You can use this module with the following in your @~\/.xmonad\/xmonad.hs@:
|
||||||
--
|
--
|
||||||
-- > import XMonad.Actions.DwmPromote
|
-- > import XMonad.Actions.DwmPromote
|
||||||
--
|
--
|
||||||
-- and add a keybinding or substitute promote with dwmpromote:
|
-- then add a keybinding or substitute 'dwmpromote' in place of promote:
|
||||||
--
|
--
|
||||||
-- > , ((modMask, xK_Return), dwmpromote)
|
-- > , ((modMask, xK_Return), dwmpromote)
|
||||||
|
--
|
||||||
|
-- For detailed instructions on editing your key bindings, see
|
||||||
|
-- "XMonad.Doc.Extending#Editing_key_bindings".
|
||||||
|
|
||||||
-- %import XMonad.Actions.DwmPromote
|
-- | Swap the focused window with the master window. If focus is in
|
||||||
-- %keybind , ((modMask, xK_Return), dwmpromote)
|
-- the master, swap it with the next window in the stack. Focus
|
||||||
|
-- stays in the master.
|
||||||
dwmpromote :: X ()
|
dwmpromote :: X ()
|
||||||
dwmpromote = windows $ modify' $
|
dwmpromote = windows $ modify' $
|
||||||
\c -> case c of
|
\c -> case c of
|
||||||
|
Loading…
x
Reference in New Issue
Block a user