sudo apt install fcitx5 \
fcitx5-chinese-addons \
fcitx5-frontend-gtk4 fcitx5-frontend-gtk3 fcitx5-frontend-gtk2 \
fcitx5-frontend-qt5
安装中文词库
# 下载词库文件
安装中文词库
# 下载词库文件
wget https://github.com/felixonmars/fcitx5-pinyin-zhwiki/releases/download/0.2.4/zhwiki-20220416.dict
# 创建存储目录
mkdir -p ~/.local/share/fcitx5/pinyin/dictionaries/
# 移动词库文件至该目录
mv zhwiki-20220416.dict ~/.local/share/fcitx5/pinyin/dictionaries/
配置
配置
#设置为默认输入法
im-config
根据弹出窗口的提示,将首选输入法设置为 Fcitx 5
如无该命令需先安装工具
sudo apt download im-config
#环境变量
设置桌面会话环境变量
export XMODIFIERS=@im=fcitx
export GTK_IM_MODULE=fcitx
export QT_IM_MODULE=fcitx
将以上配置内容写入配置文件中
vim /etc/profile
将以上配置内容写入配置文件中
vim /etc/profile
i 编辑插入配置文件内容最后
ESC
:wq 保存退出
如未安装vim,需先安装
sudo apt-get install vim
如未安装vim,需先安装
sudo apt-get install vim
安装Tweaks
sudo apt install gnome-tweaks
打开设置开机启动项:
显示应用程序->工具->优化
没有评论:
发表评论