許多從 Windows 轉移至 Linux 的使用者最關心的就是「怎麼切換中英輸入」。好消息是:主流 Linux 桌面環境(GNOME、KDE、XFCE 等)預設的切換熱鍵與 Windows 高度一致:
若你的桌面環境預設不同,通常可在「設定 → 鍵盤 → 輸入法」中自訂熱鍵。
fcitx(Free Chinese Input Toy for X)是 Linux 上最流行的中文輸入法框架,支援拼音、倉頡、注音、雙拼等多種引擎。
sudo apt install fcitx5 fcitx5-chinese-addons fcitx5-config-qtsudo pacman -S fcitx5 fcitx5-chinese-addons fcitx5-config-qtsudo dnf install fcitx5 fcitx5-chinese-addons fcitx5-configtool套件名稱通常以 fcitx5 或 fcitx 開頭,可用 apt search fcitx 或 dnf search fcitx 查找完整列表。
安裝完成後,可透過選單重啟 fcitx,或直接在終端機執行:
fcitx5 -r
注意:原文寫 fc1itx -r 為筆誤,正確指令為 fcitx5 -r(fcitx5 版)或 fcitx -r(fcitx 4 版)。
啟動設定工具(通常為 fcitx5-configtool 或 fcitx-config-gtk3),在「輸入法」頁籤:
Pinyin、Chewing、Boshiamy 等)~/.xprofile 或 ~/.profile 加入:export GTK_IM_MODULE=fcitx
export QT_IM_MODULE=fcitx
export XMODIFIERS=@im=fcitxfcitx5-wayland 或相關 Qt/GTK 整合套件。