mirror of
https://github.com/xmonad/xmonad-contrib.git
synced 2025-08-02 05:01:51 -07:00
Added function to filter out scratchpad workspace for use with ewmhLogHookCustom.
This commit is contained in:
@@ -19,6 +19,7 @@ module XMonad.Util.Scratchpad (
|
|||||||
,scratchpadSpawnActionTerminal
|
,scratchpadSpawnActionTerminal
|
||||||
,scratchpadManageHookDefault
|
,scratchpadManageHookDefault
|
||||||
,scratchpadManageHook
|
,scratchpadManageHook
|
||||||
|
,scratchpadFilterOutWorkspace
|
||||||
) where
|
) where
|
||||||
|
|
||||||
import XMonad
|
import XMonad
|
||||||
@@ -132,6 +133,12 @@ scratchpadManageHook :: W.RationalRect -- ^ User-specified screen rectangle.
|
|||||||
scratchpadManageHook rect = scratchpadQuery --> doRectFloat rect
|
scratchpadManageHook rect = scratchpadQuery --> doRectFloat rect
|
||||||
|
|
||||||
|
|
||||||
|
-- | Transforms a workspace list containing the SP workspace into one that
|
||||||
|
-- doesn't contain it. Intended for use with logHooks.
|
||||||
|
scratchpadFilterOutWorkspace :: [WindowSpace] -> [WindowSpace]
|
||||||
|
scratchpadFilterOutWorkspace = filter (\(W.Workspace tag _ _) -> tag /= scratchpadWorkspaceTag)
|
||||||
|
|
||||||
|
|
||||||
scratchpadDefaultRect :: W.RationalRect
|
scratchpadDefaultRect :: W.RationalRect
|
||||||
scratchpadDefaultRect = W.RationalRect 0.25 0.375 0.5 0.25
|
scratchpadDefaultRect = W.RationalRect 0.25 0.375 0.5 0.25
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user