mirror of
https://github.com/xmonad/xmonad-contrib.git
synced 2025-08-31 11:23:48 -07:00
X.A.CycleWS: Added ignoringWSs
`ignoringWSs` is useful in combination with `X.U.NamedScratchpad` to skip a list of tags
This commit is contained in:
@@ -116,7 +116,7 @@
|
|||||||
- `XMonad.Actions.CycleWS`
|
- `XMonad.Actions.CycleWS`
|
||||||
|
|
||||||
- Deprecated `EmptyWS`, `HiddenWS`, `NonEmptyWS`, `HiddenNonEmptyWS`,
|
- Deprecated `EmptyWS`, `HiddenWS`, `NonEmptyWS`, `HiddenNonEmptyWS`,
|
||||||
`HiddenEmptyWS`, `AnyWS` and `WSTagGroup`
|
`HiddenEmptyWS`, `AnyWS` and `WSTagGroup`.
|
||||||
|
|
||||||
### New Modules
|
### New Modules
|
||||||
|
|
||||||
@@ -643,6 +643,10 @@
|
|||||||
- Added `hiddenWS`, `emptyWS` and `anyWS` to replace deprecated
|
- Added `hiddenWS`, `emptyWS` and `anyWS` to replace deprecated
|
||||||
constructors.
|
constructors.
|
||||||
|
|
||||||
|
- Added `ingoringWSs` as a `WSType` predicate to skip workspaces having a
|
||||||
|
tag in a given list.
|
||||||
|
|
||||||
|
|
||||||
## 0.16
|
## 0.16
|
||||||
|
|
||||||
### Breaking Changes
|
### Breaking Changes
|
||||||
|
@@ -67,6 +67,7 @@ module XMonad.Actions.CycleWS (
|
|||||||
, hiddenWS
|
, hiddenWS
|
||||||
, anyWS
|
, anyWS
|
||||||
, wsTagGroup
|
, wsTagGroup
|
||||||
|
, ignoringWSs
|
||||||
|
|
||||||
, shiftTo
|
, shiftTo
|
||||||
, moveTo
|
, moveTo
|
||||||
@@ -297,6 +298,15 @@ hiddenWS = WSIs $ do
|
|||||||
anyWS :: WSType
|
anyWS :: WSType
|
||||||
anyWS = WSIs . return $ const True
|
anyWS = WSIs . return $ const True
|
||||||
|
|
||||||
|
-- | Cycle through workspaces that are not in the given list. This could, for
|
||||||
|
-- example, be used for skipping the workspace reserved for
|
||||||
|
-- "XMonad.Util.NamedScratchpad":
|
||||||
|
--
|
||||||
|
-- > moveTo Next $ hidden :&: Not empty :&: ignoringWSs [scratchpadWorkspaceTag]
|
||||||
|
--
|
||||||
|
ignoringWSs :: [WorkspaceId] -> WSType
|
||||||
|
ignoringWSs ts = WSIs . return $ (`notElem` ts) . tag
|
||||||
|
|
||||||
-- | Cycle through workspaces in the same group, the
|
-- | Cycle through workspaces in the same group, the
|
||||||
-- group name is all characters up to the first
|
-- group name is all characters up to the first
|
||||||
-- separator character or the end of the tag
|
-- separator character or the end of the tag
|
||||||
|
Reference in New Issue
Block a user