Last active
July 6, 2023 08:33
-
-
Save zjsxwc/986874fd9a142d04be1502526e462316 to your computer and use it in GitHub Desktop.
archlinux 最简单的使用自然码双拼输入法的配置
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fcitx5+rime的方案不稳定,我推荐使用ibus的方式 | |
$ yay -S ibus ibus-sunpinyin sunpinyin ibus-pinyin | |
# ibus-pinyin 可以选择繁体字输入,sunpinyin可以自然码输入 | |
$ cat ~/.xinitrc | |
#!/bin/bash | |
... | |
export XMODIFIERS=@im=ibus | |
export QT_IM_MODULE=ibus | |
export GTK_IM_MODULE=ibus | |
export QT4_IM_MODULE=ibus | |
export XIM_MODULE=ibus | |
... | |
注释掉文件 /usr/share//ibus-sunpinyin/setup/main.py 的第 506 行后, | |
`sudo vim /usr/share//ibus-sunpinyin/setup/main.py ` | |
去配置ibus-sunpinyin输入方式使用双拼与自然码。 | |
xfce 设置开机自动启动ibus | |
Applications Menu > Settings > Settings Manager and then choose the Session and Startup option and click the tab Application Autostart. | |
创建一个自启动项,命令是 sh -c "sleep 2 && ibus-daemon -rxR" | |
以下是被我弃用的fcitx5 rime方案,不推荐: | |
$ yay -S fcitx5 fcitx5-rime rime-double-pinyin | |
$ vim ~/.local/share/fcitx5/rime/default.custom.yaml | |
patch: | |
schema_list: | |
- schema: double_pinyin | |
- schema: luna_pinyin_simp | |
$ cat ~/.xinitrc | |
#!/bin/bash | |
... | |
export XMODIFIERS=@im=fcitx | |
export QT_IM_MODULE=fcitx | |
export GTK_IM_MODULE=fcitx | |
export QT4_IM_MODULE=fcitx | |
export XIM_MODULE=fcitx | |
... | |
ctrl+` switch to simpl chinese input method. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment