banner
amtoaer

晓风残月

竹杖芒鞋轻胜马,谁怕?一蓑烟雨任平生。
github
x
telegram
steam
nintendo switch
email

fcitx5 usage and optimization

Recently, I found that many people in the "archlinuxcn" group are using fcitx5, so I also tried it out.

Note: fcitx5 does not support Sogou Input Method, Baidu Input Method, etc. Users who prefer these input methods can ignore this article.

Author's environment: archlinux + kde.

Installation

Currently, archlinux already has complete support for fcitx5, so for arch users, you only need to:

# Uninstall fcitx4 related programs
sudo pacman -Rs $(pacman -Qsq fcitx)
# Install fcitx5 framework, configuration tool, and input method modules
sudo pacman -S fcitx5-im
# Install input method engines, currently available options are fcitx5-chinese-addons/fcitx5-rime/fcitx5-chewing
# Rime configuration is more complex, I haven't used chewing personally, this article uses chinese-addons
sudo pacman -S fcitx5-chinese-addons

This will successfully install fcitx5.

Next, if you want to enable fcitx5 in programs, you need to set the environment variables:

# Write the following content in ~/.xprofile
export INPUT_METHOD=fcitx5
export GTK_IM_MODULE=fcitx5
export QT_IM_MODULE=fcitx5
export XMODIFIERS=@im=fcitx5

Auto Start

By default, fcitx5 does not start automatically. To enable automatic startup, you can choose one of the following methods:

  1. Add fcitx5 through the desktop environment's autostart settings (using KDE as an example):

    image-20200817131136167

  2. Execute the following command:

    sudo cp /usr/share/applications/fcitx5.desktop ~/.config/autostart/
    

Then restart your computer and add the desired input method in "fcitx5 Configuration" (most users should choose Pinyin):

image-20200817133730806

Skins

Currently, there are limited available skins. It is recommended to use the more aesthetically pleasing fcitx5-material-color:

sudo pacman -S fcitx5-material-color

For users of other desktop environments, please refer to the project's README.md file to modify the configuration file.

KDE users can switch the theme through "Settings -> Regional Settings -> Input Method -> Additional Configuration -> Classic User Interface -> Theme":

image-20200817132911314

Word Library

Next is the crucial step of configuring the word library. Currently, the repository provides two word libraries:

  1. fcitx5-pinyin-zhwiki: Chinese Wikipedia entries
  2. fcitx5-pinyin-moegirl: Moegirlpedia entries

For users using the fcitx5-chinese-addons input method engine, the installation package will automatically enable the word libraries.

In addition, we can also import Sogou word libraries:

  • For KDE users, you can import the Sogou word library through "Settings -> Regional Settings -> Input Method -> Pinyin -> Dictionary -> Import".

    image-20200817134015025

  • For other users, you need to manually open the "Fcitx5 Configuration" software and manually configure it in the Pinyin input method.

Encountering Problems?

  1. Refer to the "arch wiki": Troubleshooting.
  2. Leave a comment under this article and I will try to answer it.

Summary

In my opinion, a well-configured fcitx5 is just as good as Sogou Input Method, and even more stable. I recommend using it.

References

Fcitx5 - ArchWiki

Loading...
Ownership of this post data is guaranteed by blockchain and smart contracts to the creator alone.