vanadium/xmonad: fix environment variables

This commit is contained in:
Primrose 2025-12-20 15:01:05 +01:00
parent 6b0c07505c
commit 34775054b2
Signed by: primrose
GPG key ID: 4E887A4CA9714ADA

View file

@ -242,11 +242,16 @@ myStartupHook = do
spawn "dbus-update-activation-environment DISPLAY XAUTHORITY WAYLAND_DISPLAY" spawn "dbus-update-activation-environment DISPLAY XAUTHORITY WAYLAND_DISPLAY"
io $ do io $ do
let setEnv' k v = setEnv k v False
-- This is done here because: -- 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 -- - 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 setEnv' "GTK_IM_MODULE" "fcitx"
putEnv "MOZ_USE_XINPUT2=1" -- Force touchpad for firefox 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 :: [(KeyMask, KeySym)]
removedKeybinds = removedKeybinds =