更新於 2024-06-22
安裝 fcitx5
sudo pacman -S fcitx5 fcitx5-configtool
建議安裝 fcitx5-configtool
,不然調整設定就要從文本文件中修改 (譬如切換輸入法的快捷鍵)。
vi /etc/environment
...
# fcitx
GTK_IM_MODULE=fcitx
QT_IM_MODULE=fcitx
XMODIFIERS=@im=fcitx
SDL_IM_MODULE=fcitx
該參數寫在 /etc/environment
或用 export
寫在 ~/.bashrc
都可以。
fcitx5 for Wayland
在 Wayland 上使用 Fcitx 5 # KDE Plasma //fcitx-im.org
- “System settings” > 鍵盤 > “Virtual keyboard” > 選擇 Fcitx 5 Wayland
- 刪除
/etc/environment
文件中的GTK_IM_MODULE=fcitx
,QT_IM_MODULE=fcitx
設定項目。
此設定可以修正只有瀏覽器能輸入中文,而終端機、文字編輯器 … 等等都不行的問題。
安裝小麥輸入法
yay -S fcitx5-mcbopomofo-git
此次安裝完,系統有關 fcitx5 程式包如下:
pacman -Qs fcitx5
# local/fcitx5 5.1.9-1 (fcitx5-im)
# Next generation of fcitx
# local/fcitx5-configtool 5.1.5-1 (fcitx5-im)
# Configuration Tool for Fcitx5
# local/fcitx5-mcbopomofo-git 2.7.r11.916e7fd-1
# McBopomofo for fcitx5
# local/fcitx5-qt 5.1.6-3 (fcitx5-im)
# Fcitx5 Qt Library (Qt5 & Qt6 integrations)
到這裡你應該可以切換到小麥輸入法並輸入中文了!