A gnome shell extension to use d-bus to switch ibus source.
- Switch ibus input method via d-bus
- Support to switch different InputMode in same source
- gnome-shell 45 or later
Run
gnome-shell --versionin command line to check version.
Visit Ibus-Swither at GNOME Extensions
git clone https://github.com/kevinhwang91/gnome-shell-ibus-switcher.gitcd gnome-shell-ibus-switcher && make install
Run gnome-extensions enable ibus-switcher@kevinhwang91.github.com to enable the extension.
- org.gnome.Shell.Extensions.IbusSwitcher.SourceSize
Get size of input methods, return a unit32 value.
- org.gnome.Shell.Extensions.IbusSwitcher.CurrentSource
Get current input method, return a string value, concatenat index and mode with | delimiter.
- org.gnome.Shell.Extensions.IbusSwitcher.SwitchSource
Switch input method with index (unit32 type) and mode (string type) as parameters, return a
string value, which is old value of CurrentSource method.
- Get current input method
dbus-send --session --type=method_call --print-reply=literal --dest=org.gnome.Shell /org/gnome/Shell/Extensions/IbusSwitcher org.gnome.Shell.Extensions.IbusSwitcher.CurrentSource
- Switch input method
dbus-send --session --type=method_call --print-reply=literal --dest=org.gnome.Shell /org/gnome/Shell/Extensions/IbusSwitcher org.gnome.Shell.Extensions.IbusSwitcher.SwitchSource uint32:1 string:中
- If you get an issue or come up with an awesome idea, don't hesitate to open an issue in github.
- If you think this plugin is useful or cool, consider rewarding it a star.
The project is licensed under a BSD-3-clause license. See LICENSE file for details.