mirror of
https://github.com/xmonad/xmonad-contrib.git
synced 2025-07-30 11:41: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
|
||||
,scratchpadManageHookDefault
|
||||
,scratchpadManageHook
|
||||
,scratchpadFilterOutWorkspace
|
||||
) where
|
||||
|
||||
import XMonad
|
||||
@@ -132,6 +133,12 @@ scratchpadManageHook :: W.RationalRect -- ^ User-specified screen rectangle.
|
||||
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 0.25 0.375 0.5 0.25
|
||||
|
||||
|
Reference in New Issue
Block a user