添加源
将fzug的源添加到repo中将下面的内容保存为fzug.repo到/etc/yum.repos.d/
[fzug-free]
name=FZUG fc$releasever - Free
baseurl=https://repo.fdzh.org/FZUG/free/$releasever/$basearch/
skip_if_unavailable=True
metadata_expire=1d
gpgcheck=0
enabled=1
exclude=sogoupinyin*
[fzug-nonfree]
name=FZUG fc$releasever - Nonfree
baseurl=https://repo.fdzh.org/FZUG/nonfree/$releasever/$basearch/
skip_if_unavailable=True
metadata_expire=1d
gpgcheck=0
enabled=1
移除ibus
自带的ibus会冲突,需要移除
sudo dnf remove ibus
安装
搜狗其实是fcitx的一个插件,而且不知道现在修改了没有,我早期使用的2.1版本是又bug的,我用的是2.0的版本
sudo dnf install fcitx-configtool sogoupinyin-*
配置
创建并编辑 ~/.xinputrc,内容如下:
export GTK_IM_MODULE=fcitx
export QT_IM_MODULE=fcitx
export XMODIFIERS="@im=fcitx"
fcitx &
这样每次开机就会自动启动fcitx了
启用搜狗
重新启动登陆系统,找到fcitx的配置程序,“fcitx config...”,在“input method”中点击最下面的“+”,弹出框中需要将“ony show ...”的勾去掉,然后输入“sogo”进行搜索,选中搜狗之后点击"ok".
这样就将搜狗加入了可切换的输入法选项列表了。
其次还有一些细节的优化,具体使用中慢慢调整就好了