vanadium/xmonad: use composeOne for non overlapping rules

This commit is contained in:
Primrose 2025-11-17 16:29:47 +08:00
parent a27f5ffefe
commit 1409a5e064
Signed by: primrose
GPG key ID: 4E887A4CA9714ADA

View file

@ -133,17 +133,15 @@ myActivateHook =
myManageHook :: ManageHook
myManageHook =
composeAll
[ isNautilusPreviewer --> customFloating centeredFloat
, isFeh --> doF copyToAll <> customFloating buttomRightFloat
, isMinder --> customFloating centeredFloat
, isFirefoxPip --> doF copyToAll <> customFloating buttomRightFloat
, isDiscord --> doShift chatWS
, isEvolution --> doShift chatWS
, isSignal --> doShift chatWS
]
<> composeOne
[ isFirefox -?> insertPosition Master Newer
composeOne
[ isNautilusPreviewer -?> customFloating centeredFloat
, isFeh -?> doF copyToAll <> customFloating buttomRightFloat
, isMinder -?> customFloating centeredFloat
, isFirefoxPip -?> doF copyToAll <> customFloating buttomRightFloat
, isDiscord -?> doShift chatWS
, isEvolution -?> doShift chatWS
, isSignal -?> doShift chatWS
, isFirefox -?> insertPosition Master Newer
, isKitty -?> insertPosition Below Newer
, isNautilus <||> isSioyek -?> insertPosition End Older
]