优先参考Fcitx WIKIWIKI
搜狗输入法的AUR
请大家习惯AUR,习惯yay,这样才能感受到arch巨大的魔力!
安装Fctix和输入法
yay -S fcitx fcitx-gtk2 fcitx-gtk3 fcitx-qt4 fcitx-qt5
yay -S fcitx-configtool
yay -S fcitx-sogoupinyin
我的fctix启动没有被禁止cat /etc/xdg/autostart/fcitx-autostart.desktop
复制的时候注意乱码
[Desktop Entry]
Name=Fcitx
Name[ca]=Fcitx
Name[da]=Fcitx
Name[de]=Fcitx
Name[es]=Fcitx
Name[ja]=Fcitx
Name[ko]=Fcitx
Name[ru]=Fcitx
Name[zh_CN]=Fcitx
Name[zh_TW]=Fcitx
GenericName=Input Method
GenericName[ca]=Mètode d‘entrada
GenericName[da]=Inputmetode
GenericName[de]=Eingabemethode
GenericName[es]=Método de entrada
GenericName[ja]=入力メソッド
GenericName[ko]=???
GenericName[ru]=Метод ввода
GenericName[zh_CN]=输入法
GenericName[zh_TW]=輸入法
Comment=Start Input Method
Comment[ca]=Inicia el mètode d‘entrada
Comment[da]=Start inputmetode
Comment[de]=Eingabemethode starten
Comment[ja]=入力メソッドを開始
Comment[ko]=??? ??
Comment[ru]=Запустить метод ввода
Comment[zh_CN]=启动输入法
Comment[zh_TW]=啓動輸入法
Exec=fcitx-autostart
Icon=fcitx
Terminal=false
Type=Application
Categories=System;Utility;
StartupNotify=false
NoDisplay=true
X-GNOME-Autostart-Phase=Applications
X-GNOME-AutoRestart=false
X-GNOME-Autostart-Notify=false
X-KDE-autostart-after=panel
X-KDE-StartupNotify=false
环境变量要搞上
echo "GTK_IM_MODULE=fcitx
QT_IM_MODULE=fcitx
XMODIFIERS=@im=fcitx" > ~/.pam_environment
下面这个xprofile有中文配置部分
echo "export GTK_IM_MODULE=fcitx
export QT_IM_MODULE=fcitx
export XMODIFIERS="@im=fcitx"
fcitx & gnome-session
export LC_ALL="zh_CN.UTF-8"
" > ~/.xprofile
上面的两个就行了,下面的这个是歪门邪道
echo "export GTK_IM_MODULE=fcitx
export QT_IM_MODULE=fcitx
export XMODIFIERS="@im=fcitx"" >> /etc/profile
检查下.initrc
cat .xinitrc
export XDG_CURRENT_DESKTOP=GNOME-Classic:GNOME
export GNOME_SHELL_SESSION_MODE=classic
exec gnome-session --session=gnome-classic
注销重启
查看fcitx进程是否启动
ps aux |grep fcitx
ps aux |grep sogou
配置输入法到第一位,直接终端输入下面命令,或者Win+A打开所有找fcitx,或者Win直接搜索fcit
fcitx-configtool
一定要注意下面的快捷键,用Ctrl+Space激活输入法,而不是Ctrl+Shift!!!
小贴士,多么贴心!!!
arch kernel 5.7.7 gnome 3.36.4 搜狗拼音输入法
原文:https://www.cnblogs.com/edclol/p/13360927.html