I am trying out minimalist window managers such as, but not limited to, Xmonad, ScrotWM, ratpoison, etc. Since I occasionally need to enter Traditional Chinese characters, how do I install an input manager that lets me switch between input methods easily, such as through a hotkey combo? Any instructions would be appreciated.
As Michael suggests, the window manager is not responsible for managing the input method. First you will need to choose an input method, of which
uim appear to be the most popular.
Next, you need to make sure it is started when
X is launched. You've mentioned you are using a lightweight WM, therefore you'll likely want to add it to an X init file, such as
export GTK_IM_MODULE=scim export XMODIFIERS=@im=SCIM export QT_IM_MODULE=scim scim -d
Depending on the input method you choose, the method to switch languages will differ. Typically, you'll need to
export LANG, such as
... but sometimes right clicking on an input field and choosing "Input Methods" may suffice.
I use Ratpoison WM. To type Chinese, I simply added IBUS to the
~/.ratpoisonrc file, which then starts IBUS when you start Ratpoison. The line looks like this:
exec ibus-daemon --xim
If you aren't using Ratpoison, arrange to launch
ibus-daemon --xim when your X session start by whatever means your window manager or session manager provides.
Then, to start typing in Chinese, type both Control+SpaceBar as normal.