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:
-
Open the configuration tool from your terminal:
fcitx5-configtool
-
Go to the “Add-ons” tab.
-
Scroll down to “Classic User Interface” in the list and click the “Configure” button.
-
In the new window, you will see a “Font” setting.
-
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:
-
Copy the desktop file to user directory:
cp /usr/share/applications/code.desktop ~/.local/share/applications/
-
Edit the copied desktop file:
nano ~/.local/share/applications/code.desktop
-
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
-
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