manjaro安装其他输入法

2023-03-03  本文已影响0人  疯狂的冰块

安装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
**创建.xprofile并添加如下内容:**
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输入法
将下面的内容粘贴到~/.pam_environment

GTK_IM_MODULE DEFAULT=fcitx
QT_IM_MODULE  DEFAULT=fcitx
XMODIFIERS    DEFAULT=@im=fcitx

将下面的内容粘贴到 ~/.xprofile(每次使用gdm等图形登录时读取并运用里面的设定)

fcitx5 &

使用wps的用户还需要编辑~/.xprofile

export QT_IM_MODULE=fcitx5

https://www.cnblogs.com/fatalord/p/13850072.html
https://zhuanlan.zhihu.com/p/341637818

上一篇 下一篇

猜你喜欢

热点阅读