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 :: ManageHook
myManageHook = myManageHook =
composeAll composeOne
[ isNautilusPreviewer --> customFloating centeredFloat [ isNautilusPreviewer -?> customFloating centeredFloat
, isFeh --> doF copyToAll <> customFloating buttomRightFloat , isFeh -?> doF copyToAll <> customFloating buttomRightFloat
, isMinder --> customFloating centeredFloat , isMinder -?> customFloating centeredFloat
, isFirefoxPip --> doF copyToAll <> customFloating buttomRightFloat , isFirefoxPip -?> doF copyToAll <> customFloating buttomRightFloat
, isDiscord --> doShift chatWS , isDiscord -?> doShift chatWS
, isEvolution --> doShift chatWS , isEvolution -?> doShift chatWS
, isSignal --> doShift chatWS , isSignal -?> doShift chatWS
] , isFirefox -?> insertPosition Master Newer
<> composeOne
[ isFirefox -?> insertPosition Master Newer
, isKitty -?> insertPosition Below Newer , isKitty -?> insertPosition Below Newer
, isNautilus <||> isSioyek -?> insertPosition End Older , isNautilus <||> isSioyek -?> insertPosition End Older
] ]