惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

K
Kaspersky official blog
Martin Fowler
Martin Fowler
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
V
Visual Studio Blog
博客园_首页
Engineering at Meta
Engineering at Meta
The Cloudflare Blog
MongoDB | Blog
MongoDB | Blog
Blog — PlanetScale
Blog — PlanetScale
T
The Blog of Author Tim Ferriss
雷峰网
雷峰网
D
Docker
博客园 - 司徒正美
S
SegmentFault 最新的问题
M
MIT News - Artificial intelligence
博客园 - 叶小钗
博客园 - 三生石上(FineUI控件)
U
Unit 42
J
Java Code Geeks
A
About on SuperTechFans
N
Netflix TechBlog - Medium
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
S
Security Affairs
I
Intezer
Cisco Talos Blog
Cisco Talos Blog
C
Cyber Attacks, Cyber Crime and Cyber Security
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
B
Blog RSS Feed
P
Privacy & Cybersecurity Law Blog
T
Tenable Blog
T
Threatpost
H
Hacker News: Front Page
G
Google Developers Blog
博客园 - 【当耐特】
Hugging Face - Blog
Hugging Face - Blog
Apple Machine Learning Research
Apple Machine Learning Research
L
Lohrmann on Cybersecurity
大猫的无限游戏
大猫的无限游戏
Google DeepMind News
Google DeepMind News
A
Arctic Wolf
S
Secure Thoughts
GbyAI
GbyAI
NISL@THU
NISL@THU
S
Security @ Cisco Blogs
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
Webroot Blog
Webroot Blog
C
CXSECURITY Database RSS Feed - CXSecurity.com
O
OpenAI News
Spread Privacy
Spread Privacy
Application and Cybersecurity Blog
Application and Cybersecurity Blog

weirane’s blog

开始读《异见时刻》 中美文化差异 关于基于表达式的编程语言的一些思考 使用 bwrap 隔离 WPS Office 从零开始的 λ 演算 从 Manjaro 迁移到 Arch Linux 使用 pass 管理密码 更换域名 搭建一个 Git 服务器
Fcitx5 安装记
weirane · 2020-05-03 · via weirane’s blog

3 minute read

在 #archlinux-cn 上 fcitx 是个经常被讨论的话题,每次都有人推荐 fcitx5。但是因为只有在 KDE 中有图形化的配置工具就一直没有尝试。今天有人说配置工具 kcm-fcitx5 在非 KDE 中也可以安装了,所以来试试。

  • 2021-01-29 更新:kcm-fcitx5 改名为 fcitx5-configtool(其实早就改了,只是博 客里没更新)

安装

先卸载 fcitx4:

pacman -Qsq fcitx | sudo pacman -Rsn -

安装 fcitx5:

sudo pacman -S fcitx5 fcitx5-chinese-addons fcitx5-configtool fcitx5-qt fcitx5-gtk

Fcitx5 自带的皮肤不是很好看,我还安装了 material-color 皮肤

sudo pacman -S fcitx5-material-color

配置

输入法

有了图形化的配置工具,配置会轻松很多。首先在「输入法」一栏中添加需要的输入法,我使用的是双拼,然后在「附加组件」→「拼音」里面修改双拼方案为小鹤双拼。

自动启动与环境变量

把自动启动 fcitx 的命令改成 fcitx5

我使用的图形管理是 X11。使用 fcitx4 的时候在 ~/.xprofile 或者 ~/.xinitrc 中设置的环境变量似乎不需要改成 fcitx5,之前 fcitx 使用的配置可以直接使用。

export GTK_IM_MODULE=fcitx
export QT_IM_MODULE=fcitx
export XMODIFIERS="@im=fcitx"

体验

快捷输入

在输入法激活时使用分号键触发快捷输入。在 /usr/share/fcitx5/data/quickphrase.d 中有一些自带的快捷输入,包括 emoji 和一些 LaTeX 命令,可以转换部分 LaTeX 命令到对应的 unicode 字符,这个功能非常实用,可以让 LaTeX 文档更直观。当然也可以在配置工具中自定义快捷输入。

emoji quick phrase

LaTeX quick phrase

单行模式

Fcitx5 自带的拼音可以使用单行模式,配合 material color 主题体验很好,有点 Windows 10 自带输入法的感觉。

material color blue1

对于自带的拼音,在配置工具的「附加组件」→「拼音」中打开「可用时在应用程序中显示预编辑文本」,或者直接修改 ~/.config/fcitx5/conf/pinyin.conf

# 可用时在应用程序中显示预编辑文本
PreeditInApplicaation=True

可惜单行模式对使用 XIM 的程序不能使用 2,而我用的终端模拟器 alacritty 正好是使用的 XIM 😥3。不过单行模式算不上是刚需,也就无所谓了。

总结

总的来说,fcitx5 的体验比 4 要好一些。配置选项简洁,配合 material color 皮肤界面也比较好看。也可能只是我没有仔细研究 fcitx4 的配置