What do you think? Discuss, post comments, or ask questions at the end of this article [More about me]

Skip to end of metadata
Go to start of metadata

I speak (and read/write) another language (Japanese).  Below is a brief guide to enabling Japanese input on Arch/Manjaro (what I currently run) and i3wm (my preferred window manager). 

Guide

Install required packages

First let's install the required packages.  Fortunately, Arch provides a "group" with (almost) everything we need:

sudo pacman -S fcitx-im

(just hit enter to install all).

We need to install a few more packages (one being a Japanese input editor and the other a configuration tool):

sudo pacman -S fcitx-configtool fcitx-mozc
yay -S ttf-vlgothic

Note: ttf-vlgothic is in the AUR and in the above commands I'm using yay (an AUR helper) to install it.

Configure stuff

Now we have the required packages installed, we need to do a bit of configuring. 

I needed to add the following to my .profile:

# Japanese input
export QT_IM_MODULE=fcitx
export XMODIFIERS=@im=fcitx
export GTK_IM_MODULE=fcitx

Running Wayland (Sway?) instead of xorg?  You'll need to append the above ENV variables to /etc/environment.  See this thread for more information.

If you're using i3, we'll need to start fcitx when we start our window manager.  For i3 that means adding the following to your i3.conf:

Add the following to your i3.conf to enable Japanese input on start
exec --no-startup-id fcitx -d

Once done, restart (or logout/login) and you should be able to hit alt-space(bar) at an input area and it should switch to Japanese input.  When in Japanese input mode the fcitx tray icon icon should look like:

Troubleshooting

If, after a restart, you still cannot input Japanese, try running fcitx-diagnose from terminal (detected issues will be marked in red).

Also, run fcitx-configtool from terminal and make sure there is a Mozc input method.

頑張って諦めないでね!

References

  1. https://forum.manjaro.org/t/installing-japanese-input-method-and-fonts/10020/7