Setup CJK Input Methods on Linux with Fcitx

Posted on Tue, Sep 22, 2020 🌲 Flourishing Note Linux

Setting up local input methods is one of the most important but frustrating work for non-English Linux users. Here I share how I setup CJK (Chinese, Japanese, Korean) input methods.

Installation

Install packages. Below is for Arch Linux, in other Linux distributions, package names may vary.

sudo pacman -S \
fcitx fcitx-configtool fcitx-qt5 \
fcitx-chewing fcitx-hangul fcitx-mozc fcitx-ui-light

Add the following to ~/.xprofile or ~/.xinitrc depending on your environment. Refer to Set environment variables for IM modules.

export GTK_IM_MODULE=fcitx
export QT_IM_MODULE=fcitx
export XMODIFIERS=@im=fcitx

Then, logout and login, launch the app Fcitx Configuration, click + to add CJK input methods (uncheck Only Show Current Language to see all input methods).

Configure shortcuts that switch between input methods.

The CJK input methods should now be ready!

Usage Notes

General

Japanese (fcitx-mozc)

Issues