安裝sunpinyin輸入法
搜狗輸入法很容易卡死和崩潰,google-pinyin個人使用起來自動補全效果不如fcitx-sunpinyin
sunpinyin開源代碼庫:https://github.com/sunpinyin/sunpinyin
sudo pacman -S fcitx-im #默認全部安裝
sudo pacman -S fcitx-configtool
sudo pacman -S fcitx-sunpinyin
**創(chuàng)建.xprofile并添加如下內(nèi)容:**
sudo vim ~/.xprofile
export GTK_IM_MODULE=fcitx
export QT_IM_MODULE=fcitx
export XMODIFIERS="@im=fcitx"
安裝fcitx 5
sudo pacman -Rs $(pacman -Qsq fcitx)
sudo pacman -S fcitx5 fcitx5-configtool fcitx5-qt fcitx5-gtk fcitx5-chinese-addons fcitx5-material-color
fcitx5: 輸入法基礎框架主程序
fcitx5-configtool(kcm-fcitx5):輸入法配置程序(KDE桌面環(huán)境的支持)
fcitx5-qt: QT5程序的支持
fcitx5-gtk: GTK程序的支持
fcitx5-chinese-addons: 簡體中文輸入的支持,云拼音
fcitx5-material-color:一款使用 Material Design 配色的 fcitx5 皮膚,旨在模仿 Windows 10 自帶輸入法的 UI
修改輸入法環(huán)境變量,使應用可以調(diào)用Fcitx5輸入法
將下面的內(nèi)容粘貼到~/.pam_environment
GTK_IM_MODULE DEFAULT=fcitx
QT_IM_MODULE DEFAULT=fcitx
XMODIFIERS DEFAULT=@im=fcitx
將下面的內(nèi)容粘貼到 ~/.xprofile(每次使用gdm等圖形登錄時讀取并運用里面的設定)
fcitx5 &
使用wps的用戶還需要編輯~/.xprofile
export QT_IM_MODULE=fcitx5
https://www.cnblogs.com/fatalord/p/13850072.html
https://zhuanlan.zhihu.com/p/341637818