# Fcitx5中文输入法

个人使用的是Gnome + Hyprland的桌面环境，由于在Gnome中直接使用`ibus`搭配`rime`比较方便，并不需要过多配置。但是在Hyprland中，无法直接使用`ibus`输入，这时我们需要使用`Fcitx5`作为中文输入法。

## 安装Fcitx5

见[Arch Wiki](https://wiki.archlinux.org/title/Fcitx5)，使用包管理器安装后还要设置好相应的环境变量。

```sh
yay -S fcitx5-im # fcitx5 and config tools
```

## 输入法引擎

这里个人使用的是rime的输入法引擎，通过包管理器安装后就可以配置使用。默认使用的是繁体中文，可以按F4来切换成简体中文。更多配置随以后使用慢慢添加。

```sh
yay -S fcitx5-rime
```

## 主题

原生的主题比较复古，这里直接选取了`fcitx5-material-color`并更换为`black`主题。该库也可以直接通过AUR进行安装：

```sh
yay -S fcitx5-material-color
```

安装成功后可以直接打开Fcitx5 Configuration进行配置。

## 配置

更改配置文件`~/.config/fcitx5/conf/classicui.conf`或者直接通过Fcitx5 Configuration应用进行配置。

* 若输入框模糊，可关闭`Enable fractional scale under Wayland`，对应配置文件为`EnableFractionalScale=False`。


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://101.ree.ink/use/linux/hyprland/fcitx5-zhong-wen-shu-ru-fa.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
