From 7e5116f55dcc44fa58c8a07f096d17cd3677961c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9ana=20=E6=B1=9F?= Date: Sun, 10 Aug 2025 23:31:22 +0200 Subject: [PATCH] home/firefox: set MOZ_USE_XINPUT2=1 --- nix/configurations/vanadium/home/xmonad/xmonad.hs | 2 -- nix/homeModules/common/firefox.nix | 4 ++++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/nix/configurations/vanadium/home/xmonad/xmonad.hs b/nix/configurations/vanadium/home/xmonad/xmonad.hs index 8d3ab02d..c666b609 100644 --- a/nix/configurations/vanadium/home/xmonad/xmonad.hs +++ b/nix/configurations/vanadium/home/xmonad/xmonad.hs @@ -86,8 +86,6 @@ main = xmonad io $ do putEnv "GLFW_IM_MODULE=ibus" -- Make sure kitty knows how to talk to fcitx - putEnv "MOZ_USE_XINPUT2=1" -- Force touchpad for firefox - spawn "dbus-update-activation-environment DISPLAY XAUTHORITY WAYLAND_DISPLAY" , layoutHook = diff --git a/nix/homeModules/common/firefox.nix b/nix/homeModules/common/firefox.nix index dccb7d8a..c5666266 100644 --- a/nix/homeModules/common/firefox.nix +++ b/nix/homeModules/common/firefox.nix @@ -105,4 +105,8 @@ in { "text/html" = ["firefox.desktop"]; }; }; + + home.sessionVariables = lib.mkIf cfg.enable { + MOZ_USE_XINPUT2 = "1"; # Better scrolling + }; }