ref:
- Install fcitx
sudo apt install fcitx
- Download sogoupinyin package from https://pinyin.sogou.com/linux/?r=pinyin
- Install sogoupinyin package. There might be some depends problem such as libopencc2, fcitx-libs etc. Install them with
sudo apt install -f
. - Create .xprofile in the HOME dir, contents:
GTK_IM_MODULE=fcitx QT_IM_MODULE=fcitx XMODIFIERS=@im=fcitx
- Reboot
- Right click on the keyboard icon in the right of the task bar, select "Configure Current Input Method". In the "Input Method Configuration" dialog, add Sogou Pinyin to Input Method list.
- Done. You can switch input method with Ctrl-Space.
- You may need to mannually install
libgsettings-qt1
too.