diff --git a/home/modules/programs/my-sway/default.nix b/home/modules/programs/my-sway/default.nix index 3ad2312..2a7ec63 100644 --- a/home/modules/programs/my-sway/default.nix +++ b/home/modules/programs/my-sway/default.nix @@ -159,6 +159,8 @@ in # Startup programs { command = "${cfg.browser}"; } { command = "thunderbird"; } + # IME + { command = "fcitx5"; } ] ++ (if cfg.discord != null then [ { command = "${cfg.discord}"; } ] ++ lib.lists.optional @@ -346,6 +348,7 @@ in export SDL_VIDEODRIVER=wayland export QT_QPA_PLATFORM=wayland export QT_WAYLAND_DISABLE_WINDOWDECORATION="1" + export QT_IM_MODULE=fcitx # export NIXOS_OZONE_WL=1 # Yeah this fucks up IMEs '' + (if config.services.gnome-keyring.enable then '' diff --git a/modules/common/linux/default.nix b/modules/common/linux/default.nix index bcd4901..33817aa 100644 --- a/modules/common/linux/default.nix +++ b/modules/common/linux/default.nix @@ -249,6 +249,7 @@ in # Input methods (only fcitx5 works reliably on Wayland) i18n.inputMethod = { enabled = "fcitx5"; + fcitx5.waylandFrontend = true; fcitx5.addons = with pkgs; [ fcitx5-mozc fcitx5-unikey