sergei-mironov / xkb-switch

Switch your X keyboard layouts from the command line
MIT License
345 stars 37 forks source link

Can not change input method of fcitix via command 'xkb-switch -s' #60

Open RnYi opened 2 years ago

RnYi commented 2 years ago

OS: Debian GNU/Linux 11 Linux: 5.10.0-8-amd64 xkb-switch version: 1.8.5 I'm using fcitix-rime and have two input methods: image

Freed-Wu commented 1 year ago

What is the result of xkb-switch -l?

I met the same problem for ibus, which I have us and pinyin, but xkb-switch -l only return us.

Freed-Wu commented 1 year ago

I have tested it work for some language, but it cannot for ibus-libpinyin and fcitx-libpinyin.

Freed-Wu commented 1 year ago

It should be the bug only of xkb-switch, because @lyokha 's g3kb-switch can work:

Screenshot from 2022-10-26 21-11-20

Freed-Wu commented 2 months ago

I think xkb-switch cannot work for ibus IME, it only work for xkb keyboard.

$ gsettings get org.gnome.desktop.input-sources sources
[('xkb', 'us'), ('ibus', 'rime')]
Freed-Wu commented 2 months ago

If you want to input Chinese characters in vim, I think https://github.com/tonyfettes/coc-rime?tab=readme-ov-file#related-projects should be useful for you.