From c72ef76b20fadb07ab178a99a3e39abf5a93b8a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9ana=20=E6=B1=9F?= Date: Mon, 24 Nov 2025 13:40:01 +0800 Subject: [PATCH] vanadium/xmonad: fix overlapping manage hooks --- nix/configurations/vanadium/home/xmonad/xmonad.hs | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/nix/configurations/vanadium/home/xmonad/xmonad.hs b/nix/configurations/vanadium/home/xmonad/xmonad.hs index cbce62bb..8a378a9a 100644 --- a/nix/configurations/vanadium/home/xmonad/xmonad.hs +++ b/nix/configurations/vanadium/home/xmonad/xmonad.hs @@ -159,19 +159,22 @@ myManageHook = , isPavucontrol --> 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 - - , isUtility --> doIgnore - , isDialog --> customFloating centeredFloat - , isEvolutionComposer --> customFloating centeredFloat ] - <> namedScratchpadManageHook myScratchpads + -- Note: some rules here are overlapping, the first one will take the precedence (composeOne) + -- e.g. firefoxpip is a utility window + <> composeOne + [ isFirefoxPip -?> doF copyToAll <> customFloating buttomRightFloat + , isUtility -?> doIgnore + , isDialog -?> customFloating centeredFloat + , isEvolutionComposer -?> customFloating centeredFloat + ] + <> namedScratchpadManageHook myScratchpads -- TODO: is there a way to always open certain sites in new windows in firefox? -- TODO: stop full screen when move happens