From 34775054b201b14669baa90cae356acc9be15455 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9ana=20=E6=B1=9F?= Date: Sat, 20 Dec 2025 15:01:05 +0100 Subject: [PATCH] vanadium/xmonad: fix environment variables --- nix/configurations/vanadium/home/xmonad/xmonad.hs | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/nix/configurations/vanadium/home/xmonad/xmonad.hs b/nix/configurations/vanadium/home/xmonad/xmonad.hs index 7acc4da2..90f8e80e 100644 --- a/nix/configurations/vanadium/home/xmonad/xmonad.hs +++ b/nix/configurations/vanadium/home/xmonad/xmonad.hs @@ -242,11 +242,16 @@ myStartupHook = do spawn "dbus-update-activation-environment DISPLAY XAUTHORITY WAYLAND_DISPLAY" io $ do + let setEnv' k v = setEnv k v False -- This is done here because: - -- - setting `home.sessionVariable` (home-manager) would only effect shells, probably due to the order of launched processes blah blah + -- - setting `home.sessionVariable` (home-manager) would only effect shells because xmonad is configured with NixOS modules -- - 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 + setEnv' "GTK_IM_MODULE" "fcitx" + setEnv' "QT_IM_MODULE" "fcitx" + setEnv' "XMODIFIERS" "@im=fcitx" + setEnv' "GLFW_IM_MODULE" "ibus" + + setEnv' "MOZ_USE_XINPUT2" "1" -- Force touchpad for firefox removedKeybinds :: [(KeyMask, KeySym)] removedKeybinds =