diff --git a/nix/configurations/vanadium/home/xmonad/xmonad.hs b/nix/configurations/vanadium/home/xmonad/xmonad.hs index a41e765d..76182ee5 100644 --- a/nix/configurations/vanadium/home/xmonad/xmonad.hs +++ b/nix/configurations/vanadium/home/xmonad/xmonad.hs @@ -95,7 +95,7 @@ isEvolutionComposer = ] isFirefox :: Query Bool -isFirefox = className =? "firefox" +isFirefox = className =? "firefox" <||> className ^? "zen" isSpotify :: Query Bool isSpotify = isFirefox <&&> title ~? "Spotify" @@ -112,9 +112,11 @@ 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 =? "Incrustation vidéo" +isFirefoxPip = + isFirefox + -- This changes depending on the locale of the browser :/ + <&&> (title =? "Incrustation vidéo" <||> title =? "Picture-in-Picture") isPavucontrol :: Query Bool isPavucontrol = className =? "pavucontrol" @@ -223,7 +225,9 @@ myStartupHook = do -- - setting `home.sessionVariable` (home-manager) would only effect shells, probably due to the order of launched processes blah blah -- - setting `environment.sessionVariables` (NixOS) would make my set up less portable putEnv "GLFW_IM_MODULE=ibus" -- Make sure kitty knows how to talk to fcitx - putEnv "MOZ_USE_XINPUT2=1" -- Force touchpad for firefox + + -- TODO: doesn't work for firefox nor for zen since 145.0 + -- putEnv "MOZ_USE_XINPUT2=1" -- Force touchpad for firefox removedKeybinds :: [(KeyMask, KeySym)] removedKeybinds = @@ -309,7 +313,7 @@ keybinds = ) -- Launcher - ++ (let launchFirefox = "if type firefox; then firefox; else firefox-esr; fi" + ++ (let launchFirefox = "zen" launchDmenu = "dmenu_run -i -fn \"Iosevka-14\" -nb \"#36363a\" -nf \"#e2e2e4\" -sb \"#f7f7f8\" -sf \"#36363a\" -l 10" lock = "xscreensaver-command -lock" in [ ((controlMask .|. altMask, xK_m), namedScratchpadAction myScratchpads "cmus" )