Skip to Content
FedoraFedora Input Method

Fedora Input Method

Input Method(fcitx5)

install fcitx5 with Japanese and Chinese input method

sudo dnf install fcitx5 fcitx5-autostart fcitx5-gtk fcitx5-qt fcitx5-chinese-addons fcitx5-mozc

install kimpanel for input method, no need for niri

reboot

in fcitx configuration

add Shuangpin and Mozc

in Global Options, set Trigger Input Method to Control+Shift+Space .

in addons, set Shuangpin with Shuangpin Profile Xiaohe

if 双拼没有生效 原来是添加输入法时,选择了 Pinyin 而不是 Shuangpin 。重新添加 Shuangpin 就好了。

Adjust UI Font Size for High DPI Displays

When the fcitx5 UI is too small on high-resolution displays, you can increase the font size:

  1. Open the configuration tool from your terminal:

    fcitx5-configtool
  2. Go to the “Add-ons” tab.

  3. Scroll down to “Classic User Interface” in the list and click the “Configure” button.

  4. In the new window, you will see a “Font” setting.

  5. Click on it and increase the font size. For a 4K screen with 200% scaling, you’ll likely want to double the default size (e.g., change from 12 to 24).

Fix Input Method for Electron Apps (VS Code)

According to Arch wiki, Electron apps like VS Code need special configuration to work with fcitx5 input method.

Steps to fix VS Code input method:

  1. Copy the desktop file to user directory:

    cp /usr/share/applications/code.desktop ~/.local/share/applications/
  2. Edit the copied desktop file:

    nano ~/.local/share/applications/code.desktop
  3. Replace the Exec line with Wayland flags:

    Exec=/usr/share/code/code --enable-features=UseOzonePlatform --ozone-platform=wayland --enable-wayland-ime --wayland-text-input-version=3 %F # also for the new window Exec=/usr/share/code/code --enable-features=UseOzonePlatform --ozone-platform=wayland --enable-wayland-ime --wayland-text-input-version=3 --new-window %F
  4. Save and restart

This enables native Wayland mode and proper input method support for Japanese/Chinese typing.

Attention: this fix only applies when you open VS Code from the application menu or desktop icon, not from terminal like code some-file.

Reference: https://fcitx-im.org/wiki/Using_Fcitx_5_on_Wayland

Last updated on