mirror of
https://github.com/xmonad/xmonad-contrib.git
synced 2025-08-01 12:41:52 -07:00
X.H.ManageHelpers: Add doLower, doRaise
I need this in my config and I've seen it being useful for others on Reddit and IRC.
This commit is contained in:
@@ -301,6 +301,8 @@
|
||||
|
||||
- Export `doSink`
|
||||
|
||||
- Added `doLower` and `doRaise`
|
||||
|
||||
* `XMonad.Util.EZConfig`
|
||||
|
||||
- Added support for XF86Bluetooth.
|
||||
|
@@ -47,6 +47,8 @@ module XMonad.Hooks.ManageHelpers (
|
||||
doFloatDep,
|
||||
doHideIgnore,
|
||||
doSink,
|
||||
doLower,
|
||||
doRaise,
|
||||
Match,
|
||||
) where
|
||||
|
||||
@@ -231,3 +233,13 @@ doHideIgnore = ask >>= \w -> liftX (hide w) >> doF (W.delete w)
|
||||
-- | Sinks a window
|
||||
doSink :: ManageHook
|
||||
doSink = reader (Endo . W.sink)
|
||||
|
||||
-- | Lower an unmanaged window. Useful together with 'doIgnore' to lower
|
||||
-- special windows that for some reason don't do it themselves.
|
||||
doLower :: ManageHook
|
||||
doLower = ask >>= \w -> liftX $ withDisplay $ \dpy -> io (lowerWindow dpy w) >> mempty
|
||||
|
||||
-- | Raise an unmanaged window. Useful together with 'doIgnore' to raise
|
||||
-- special windows that for some reason don't do it themselves.
|
||||
doRaise :: ManageHook
|
||||
doRaise = ask >>= \w -> liftX $ withDisplay $ \dpy -> io (raiseWindow dpy w) >> mempty
|
||||
|
Reference in New Issue
Block a user