-
Install fcitx-mozc
-
Create .pam_environment file in your home directory with the following contents:
XMODIFIERS=@im=fcitx
GTK_IM_MODULE=fcitx
QT_IM_MODULE=fcitx
DefaultIMModule=fcitx
- Run
fcitx-autostart
in terminal. Re-login. PressCtrl+Shift
in text editor. Japanese input should become available. Pressing Ctrl+Shift should switch you back to your default language input. No need to add kbd layouts.
PS: if using KDE, add input method plasmoid to the panel.
further reading:
- xsession
- X Window Manager
- X Window System Protocols and Architecture
- Difference between .xinitrc, .xsession and .xsessionrc
sources: