Hipster Handbook - How to enable the Intelligent Input Bus (IBus)

You can configure Keyboard Layout preferences such as keyboard layout, keyboard model, and so on, and MATE input method (for IBus). Input Methods (IM) can be used if you regularly use languages that have large number of characters or complex characters, for example Asian languages like Chinese, Japanese or Korean, but IBus can also be used for Latin languages.

When installing OpenIndiana, you entered a keyboard model for the text console (the keyboard that is used without installing MATE or X11).

See:

    # man kbd

The configured keyboard can be retrieved by the command:

    # svcprop -p keymap/layout keymap
    French

When using MATE and X11, by default IM (Input Methods) are not enabled, and you can configure the keyboard for MATE in the MATE Preferences for Keyboard Hardware. Choosing a layout there, is usually sufficient for languages that have a smaller number of characters, for example languages using Latin characters as English, Spanish, French, Dutch, German, etc.

The configured keyboard for X11 can be retrieved by the command:

    # setxkbmap -query
    rules:    base
    model:    sun_type6_euro_usb
    layout:   fr

IM provides a more complex mechanism for composing characters, and it can be used also for Latin languages.

In the MATE System Menu, under Preferences, select Other and choose Input Method Selector. There is a checkbox to enable the Input Method Framework. You can choose an available Input Method Framework, where you have to select the only option, namely IBus - The Intelligent Input Bus.

After clicking OK, the system alerts you to the fact that you have to logout and login again, to apply the new setting :

enableinput

Note that after enabling the Input Method Framework, there is a $HOME/.imf file in your home directory :

    # more $HOME/.imf

The $HOME/.imf file sets the variable GTK_IM_MODULE to ibus and sets XMODIFIERS to @im=ibus to set the IM framework to ibus.

The file /etc/X11/xinit/xinitrc sources the $HOME/.imf file in your home directory by running the 0210.im script in the /etc/X11/xinit/xinitrc.d directory.

After logout and login, you can see that MATE has automatically started a ibus-daemon --xim process.

The IM framework is now enabled (after logout/login) and you can select specific input methods :

inputmethod

The above screenshot shows for example the Dutch-Belgian input method. Additional input methods such as Spanish or other input methods can be added without a need to login or logoff.

If you disable the IM , the $HOME/.imf file in your home directory will be replaced by an empty file that is created and maintained by the Input Method selector tool. In order to apply the new $HOME/.imf file, you have to logout and login again.

The OpenIndiana default is not to run IM.