侧边栏壁纸
  • 累计撰写 4 篇文章
  • 累计创建 6 个标签
  • 累计收到 0 条评论

目 录CONTENT

文章目录

Ubuntu 安装中文输入法:fcitx5 + zhwiki词库 + Material Color 主题美化

mozihe
2025-05-24 / 0 评论 / 1 点赞 / 7 阅读 / 0 字

Ubuntu 安装中文输入法:fcitx5 + zhwiki词库 + Material Color 主题美化

本文介绍如何在 Ubuntu 上安装并配置中文输入法 fcitx5,包括 zhwiki 拼音词库和 Material Design 风格的美化主题。

1. 安装 fcitx5 与中文扩展插件

sudo apt update  
sudo apt install -y fcitx5 fcitx5-chinese-addons

2. 下载并安装 zhwiki 拼音词库

wget https://github.com/felixonmars/fcitx5-pinyin-zhwiki/releases/download/0.2.5/zhwiki-20250415.dict  
mkdir -p ~/.local/share/fcitx5/pinyin/dictionaries/  
mv zhwiki-20250415.dict ~/.local/share/fcitx5/pinyin/dictionaries/

3. 配置环境变量支持 GTK / Qt / X11 输入法框架

将环境变量写入到 /etc/profile

echo 'export XMODIFIERS=@im=fcitx' | sudo tee -a /etc/profile  
echo 'export GTK_IM_MODULE=fcitx' | sudo tee -a /etc/profile  
echo 'export QT_IM_MODULE=fcitx' | sudo tee -a /etc/profile

执行以下命令立即生效(或重启系统):

source /etc/profile

4. 安装 Material Color 输入法主题

sudo apt install fcitx5-material-color

然后运行:

fcitx5-configtool

进入图形界面,在“外观”中选择 Material Color 主题即可。

5. 总结

通过本教程,你完成了:

  • fcitx5 中文输入法的安装
  • 高质量拼音词库 zhwiki 的配置
  • Material 风格输入法主题的美化

最后说一句心里话——别再折腾搜狗输入法了,真的。人家官方都摆明了只支持 Ubuntu 20.04,再往后直接装不上,就算你野蛮移植成功了,动不动卡死、闪退、不能输入,想骂人都找不到提交 Bug 的地儿。

与其死磕一个停更多年的闭源输入法,不如老老实实上 fcitx5,社区活跃,扩展丰富,想加啥加啥。

1

评论区