A simple Arch Linux instruction
Install a Japanese Input Method on Arch Linux
- Install Packages
sudo pacman -S fcitx5 fcitx5-mozc fcitx5-configtool fcitx5-gtk fcitx5-qt
- Set Environment Variables
Add these lines to the shell profile file (~/.xprofile for GDM, SDDM, LightDM, ~/.bashrc for bash)
export GTK_IM_MODULE=fcitx
export QT_IM_MODULE=fcitx
export XMODIFIERS=@im=fcitx
export SDL_IM_MODULE=fcitx
You can check out your shell by this
echo $shell
- Autostart Fcitx5
fcitx5 -d &
Log out & Log in your Arch Linux
Open the configuration tool by running:
fcitx5-configtool
In the ‘Input Method’ tab, click the + button. Search for and add Mozc to your list.