sudo pacman -S fcitx fcitx-im kcm-fcitx fcitx-configtool
vi ~/.pam_environment
with
GTK_IM_MODULE DEFAULT=fcitx
QT_IM_MODULE DEFAULT=fcitx
XMODIFIERS DEFAULT=\@im=fcitx
logout and login again
sudo pacman -S yay
install chewing
yay -S fcitx-chewing
restart fcitx server
Done~