1 安装fctix5插件
sudo apt install fcitx5-rime rime-data-emoji
2 安装东风破和码表文件
curl -O https://raw.githubusercontent.com/rime/plum/master/rime-install
chmod +x rime-install
export rime_dir="${HOME}/.local/share/fcitx5/rime"
export http_proxy="socks5://127.0.0.1:1080"
export https_proxy="socks5://127.0.0.1:1080"
bash rime-install GuoBinyong/wubixinshiji pinyin-simp
bash rime-install wubi
3 配置码表
cp ${HOME}.local/share/fcitx5/rime/default.custom.yaml ${HOME}/.local/share/fcitx5/rime/default.custom.yaml.bak
cat <<EOF > ${HOME}.local/share/fcitx5/rime/default.custom.yaml
# default.custom.yaml
# 用户 输入法配置
patch:
schema_list: # 输入方案列表
- schema: wubixinshiji_pinyin # 新世纪五笔+拼音
- schema: wubixinshiji # 新世纪五笔
- schema: pinyin_simp # 拼音
- schema: wubi86 # 86版五笔
menu:
page_size: 6 # 候选词为6个
ascii_composer/switch_key:
Shift_L: commit_code # 左shift上屏,且切换英文
Shift_R: commit_code # 右shift上屏,且切换英文
EOF
4 重新部署、同步后重启机器
参考