# Japanese input
export QT_IM_MODULE=fcitx
export XMODIFIERS=@im=fcitx
export GTK_IM_MODULE=fcitx
Info
If you're running Running Wayland (Sway?) instead of xorg? You'll need to append the above ENV variables to /etc/environment. See this thread for more information.