I am trying to get a pinyin layout alongside English working with fcitx5
. To do this I am setting the input method to fcitx5
and using rime.
I have searched dozens of open issues about this but nothing seems to help. So I am opening my own. Thank you to this community for having helped me in the past.
I cannot get rime support to work, which is required for rime’s pinyin keyboard.
If you have rime working on Nixos and Wayland (especially Hyprland) can you share your configs?
Current configuration:
Fcitx-configtool
Inside the fcitx-configtool
I have selected:
Keyboard - English (US)
Rime
Pinyin
Unfortunately when I try to use either Rime or Pinyin I get “Rime (not available)” and similarly for pinyin.
Nixos configuration
i18n = {
defaultLocale = "en_US.UTF-8";
inputMethod = {
enabled = "fcitx5";
fcitx5.addons = with pkgs; [
fcitx5-rime
fcitx5-chinese-addons
librime
];
};
};
Main issue
For some reason, librime
is not being picked up by fcitx
. journalctl
sheds some light. fcitx cannot find rime
[addonmanager.cpp:189] Could not load addon rime
[addonloader.cpp:32] Could not locate library librime.so for addon rime.
Other potentially relevant info
Window Manager: Hyprland v0.37.1
Relevant environment variables:
GLFW_IM_MODULE = fcitx
GTK_IM_MODULE = fcitx
INPUT_METHOD = fcitx
XMODIFIERS = @im=fcitx
IMSETTINGS_MODULE = fcitx
QT_IM_MODULE = fcitx
SDL_IM_MODULE = fcitx