aboutsummaryrefslogtreecommitdiffstats
path: root/SinkAll.hs
diff options
context:
space:
mode:
Diffstat (limited to 'SinkAll.hs')
-rw-r--r--SinkAll.hs36
1 files changed, 0 insertions, 36 deletions
diff --git a/SinkAll.hs b/SinkAll.hs
deleted file mode 100644
index 9ba9915..0000000
--- a/SinkAll.hs
+++ /dev/null
@@ -1,36 +0,0 @@
------------------------------------------------------------------------------
--- |
--- Module : XmonadContrib.SinkAll
--- License : BSD3-style (see LICENSE)
--- Stability : unstable
--- Portability : unportable
---
--- Provides a simple binding that pushes all floating windows on the current
--- workspace back into tiling.
------------------------------------------------------------------------------
-
-module XMonadContrib.SinkAll (
- -- * Usage
- -- $usage
- sinkAll) where
-
-import XMonad.Operations
-import XMonad
-import XMonad.StackSet
-
-import Graphics.X11.Xlib
-
--- $usage
--- > import XMonadContrib.SinkAll
--- > keys = [ ((modMask .|. shiftMask, xK_t), sinkAll) ]
-
--- %import XMonadContrib.SinkAll
--- %keybind , ((modMask .|. shiftMask, xK_t), sinkAll)
-
-sinkAll :: X ()
-sinkAll = withAll sink
-
--- 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'