Skip to main content

Arch Linux Fcitx5 Installation Guide for Multilingual Typing

··377 words·2 mins
Arch Linux Fcitx Input Method Multilingual Typing
UmmIt
Author
UmmIt
Loves to write about technology, and cybersecurity related topics :)
Table of Contents

Fcitx5 Introduction
#

Fcitx5, the successor to Fcitx, is a lightweight input method framework for Linux. Offering additional language support through various addons, it enhances your typing experience on Linux systems. This guide will walk you through the installation process and configuration steps for Fcitx5.

Install Fcitx5 and Required Addons
#

Let’s start by installing Fcitx5 and the necessary addons to enable multilingual typing support.

sudo pacman -S fcitx5-chinese-addons libime fcitx5 fcitx5-table-extra

Support Program Windows
#

To ensure comprehensive language support across various programs, install libraries for technologies used by different applications. Execute the following command:

sudo pacman -S fcitx5-qt fcitx5-gtk fcitx5-im

Environment variables
#

Environment variables are necessary to ensure the input method works correctly for x11.

TIPS: If you under wayland. You can skip this step as well. Wayland dont need to set environment variables for input method.

sudo vim /etc/environment

Paste the following lines:

export GTK_IM_MODULE=fcitx
export XMODIFIERS=fcitx
export QT_IM_MODULE=fcitx
export SDL_IM_MODULE=fcitx

Configuring Input Methods
#

You will need to configure the input method to select your desired input language. For this, fcitx5 provides a configuration tool for any Display Manager. Better to use the fcitx5-tool directly.

sudo pacman -S fcitx5-configtool
  1. After installed the tool, you should be able to find it in your application menu, open it and configure your input method.
  2. Find you preferred input language and add it to the list. (e.g., Quick Classic for 速成輸入法)
  3. Use the arrow < button to move it to the current input method list.

TIPS: In case you dont found your preferred input method, You can check the Only Show Current Language option to show all available input methods.

config tool

Restart
#

After completing the above steps, log out and log back in to apply the changes.

TIPS: Wayland user don’t need to restart the system. The changes will be applied immediately.

Check System Configuration
#

Type the following command to verify the system configuration:

echo $GTK_IM_MODULE

If fcitx5 is displayed, the configuration was successful.

Font Problem and Solution
#

If you encounter font display issues, particularly garbled characters, install a Chinese font package. Run the following command:

sudo pacman -S wqy-zenhei

And restart the fcitx5 to apply the changes.

References
#

Related

Step-by-Step Guide to Install Arch Linux from Scratch (Minimal System)
··1158 words·6 mins
Arch Linux
Windows Terminal: A Guide to Installing Oh My Posh and Customize
··2410 words·12 mins
Windows Oh My Posh
Mastering Network Management with Net-tools: A Comprehensive Guide
·297 words·2 mins
Linux Net-Tools
Unleash Compression Power with 7-Zip on Linux: Installation and Usage Guide
·343 words·2 mins
Linux 7zip
Efficient and Secure File Transfer with SCP: A Comprehensive Guide
·378 words·2 mins
Linux Scp SSH