vanadium/xmonad: fix overlapping manage hooks

This commit is contained in:
Primrose 2025-11-24 13:40:01 +08:00
parent 412480f14c
commit c72ef76b20
Signed by: primrose
GPG key ID: 4E887A4CA9714ADA

View file

@ -159,17 +159,20 @@ myManageHook =
, isPavucontrol --> customFloating centeredFloat , isPavucontrol --> customFloating centeredFloat
, isFeh --> doF copyToAll <> customFloating buttomRightFloat , isFeh --> doF copyToAll <> customFloating buttomRightFloat
, isMinder --> customFloating centeredFloat , isMinder --> customFloating centeredFloat
, 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 , isFirefox --> insertPosition Master Newer
, isKitty --> insertPosition Below Newer , isKitty --> insertPosition Below Newer
, isNautilus <||> isSioyek --> insertPosition End Older , isNautilus <||> isSioyek --> insertPosition End Older
]
, isUtility --> doIgnore -- Note: some rules here are overlapping, the first one will take the precedence (composeOne)
, isDialog --> customFloating centeredFloat -- e.g. firefoxpip is a utility window
, isEvolutionComposer --> customFloating centeredFloat <> composeOne
[ isFirefoxPip -?> doF copyToAll <> customFloating buttomRightFloat
, isUtility -?> doIgnore
, isDialog -?> customFloating centeredFloat
, isEvolutionComposer -?> customFloating centeredFloat
] ]
<> namedScratchpadManageHook myScratchpads <> namedScratchpadManageHook myScratchpads