vanadium/xmonad: copy float helper windows everywhere

This commit is contained in:
Primrose 2025-11-17 15:35:17 +08:00
parent c8dee130a6
commit a27f5ffefe
Signed by: primrose
GPG key ID: 4E887A4CA9714ADA

View file

@ -1,6 +1,7 @@
{-# LANGUAGE NegativeLiterals #-} {-# LANGUAGE NegativeLiterals #-}
import XMonad import XMonad
import XMonad.Actions.CopyWindow
import XMonad.Actions.Submap import XMonad.Actions.Submap
import XMonad.Actions.SwapWorkspaces import XMonad.Actions.SwapWorkspaces
import XMonad.Hooks.DynamicLog import XMonad.Hooks.DynamicLog
@ -99,8 +100,9 @@ isSignal = className =? "Signal"
isElement :: Query Bool isElement :: Query Bool
isElement = isFirefox <&&> title ~? "Element" isElement = isFirefox <&&> title ~? "Element"
-- This changes depending on the locale of the browser :/
isFirefoxPip :: Query Bool isFirefoxPip :: Query Bool
isFirefoxPip = isFirefox <&&> title =? "Picture-in-Picture" isFirefoxPip = isFirefox <&&> title =? "Incrustation vidéo"
isFeh :: Query Bool isFeh :: Query Bool
isFeh = className =? "feh" isFeh = className =? "feh"
@ -133,9 +135,9 @@ myManageHook :: ManageHook
myManageHook = myManageHook =
composeAll composeAll
[ isNautilusPreviewer --> customFloating centeredFloat [ isNautilusPreviewer --> customFloating centeredFloat
, isFeh --> customFloating buttomRightFloat , isFeh --> doF copyToAll <> customFloating buttomRightFloat
, isMinder --> customFloating centeredFloat , isMinder --> customFloating centeredFloat
, isFirefoxPip --> doFloat , isFirefoxPip --> doF copyToAll <> customFloating buttomRightFloat
, isDiscord --> doShift chatWS , isDiscord --> doShift chatWS
, isEvolution --> doShift chatWS , isEvolution --> doShift chatWS
, isSignal --> doShift chatWS , isSignal --> doShift chatWS