1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-11-08 11:36:05 +01:00

fcitx5: set SDL_IM_MODULE (#6742)

Sets SDL_IM_MODULE to fcitxto make fcitx5 work with sdl2 programs.
See fcitx-im.org/wiki/Setup_Fcitx_5#SDL_IM_MODULE and wiki.archlinux.org/title/Fcitx5#IM_modules
This commit is contained in:
Yiheng He 2025-04-02 08:05:28 +08:00 committed by GitHub
parent f4d9d1e2ad
commit 89279a66f4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,5 +1,4 @@
{ config, pkgs, lib, ... }:
let
im = config.i18n.inputMethod;
cfg = im.fcitx5;
@ -41,6 +40,7 @@ in {
home = {
sessionVariables = {
GLFW_IM_MODULE = "ibus"; # IME support in kitty
SDL_IM_MODULE = "fcitx";
XMODIFIERS = "@im=fcitx";
} // lib.optionalAttrs (!cfg.waylandFrontend) {
GTK_IM_MODULE = "fcitx";
@ -61,5 +61,4 @@ in {
Install.WantedBy = [ "graphical-session.target" ];
};
};
}