Environments:

Old. Check the new method

# ~/.config/environment.d/imejp.conf
XMODIFIERS=@im=fcitx
GTK_IM_MODULE=fcitx
QT_IM_MODULE=fcitx
SDL_IM_MODULE=fcitx
GLFW_IM_MODULE=ibus

Installation:

  1. Install fcitx
  2. set the above env variables
  3. add fcitx to autostart
  4. logout and signin
sudo pacman -S fcitx-configuration
sudo pacman -S fcitx-mozc
sudo pacman -S fcitx-configtool

New method for KDE

Mozc Fcitx5 JP IME

  1. No need to install any AUR packages.
  2. system settings → keyboard → virtual keyboard → fcitx5 wayland launcher
  3. add those envs
  4. frick reddit, and any other sources, they do not work for you, because it’s highly likely they are all deprecated and arch wiki might have way easier installations
sudp pacman -S fcitx5-im fcitx5-mozc
# or
sudo pacman -S fcitx5 fcitx5-configtool
 
fcitx5-diagnose
# For GTK applications like firefox single line mode
sudo pacman -S fcitx5-gtk
  • No need to set any envs anywhere.