Skip to content

Instantly share code, notes, and snippets.

@ukazap
Last active August 13, 2023 12:50
Show Gist options
  • Star 7 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save ukazap/6495324cf3220b1fef0484e8fdb244ab to your computer and use it in GitHub Desktop.
Save ukazap/6495324cf3220b1fef0484e8fdb244ab to your computer and use it in GitHub Desktop.
How to set up Chinese input methods on Fedora 35 (KDE)

How to set up Chinese input methods on Fedora 35 (KDE)

Source: https://yanqiyu.info/2020/08/30/fcitx5-fedora/

Install fcitx5, fcitx5 configuration tool, Pinyin & Zhuyin input method engines

sudo dnf install -y fcitx5 kcm-fcitx5 fcitx5-chinese-addons fcitx5-table-extra fcitx5-zhuyin

Configure fcitx5 as global input method framework

sudo alternatives --config xinputrc # choose fcitx5.

cat << EOF > ~/.config/environment.d/00-fcitx5.conf
INPUT_METHOD=fcitx5
GTK_IM_MODULE=fcitx5
QT_IM_MODULE=fcitx5
XMODIFIERS=@im=fcitx5
EOF

Add fcitx5 to autostart

ln -s /usr/share/applications/org.fcitx.Fcitx5.desktop ~/.config/autostart/

Restart the computer

sudo reboot now

好了。

@ukazap
Copy link
Author

ukazap commented Dec 14, 2021

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment