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