How to Install Japanese Keyboard on Arch (Hyprland + fcitx5 + Mozc)
So I recently needed to type in Japanese on my Arch Linux setup using
Hyprland, and lemme tell you, it wasn't exactly plug and play. But once I figured it out,
it was actually kinda straightforward. Here's a full step-by-step of what I did to get
fcitx5 + Mozc working for Japanese input.
Step 1 β Install the necessary packages
Run the following:
sudo pacman -S fcitx5-mozc fcitx5-configtool fcitx5-gtk
This gives you:
π¦ fcitx5 β the input method framework
π¦ mozc β Japanese input engine by Google
π¦ the GTK frontend + GUI config tool
Step 2 β Tell Hyprland to start fcitx5
Open your Hyprland config:
nano ~/.config/hypr/hyprland.conf
Add this under your existing exec-once entries:
exec-once = fcitx5 &
Don't be like me: I forgot to save the file before rebooting so fcitx5 didn't load on startup. Press Ctrl+O β Enter to save, Ctrl+X to exit.
Step 3 β Add environment variables
Open your shell config:
nano ~/.bashrc
Add these at the bottom:
export GTK_IM_MODULE=fcitx
export QT_IM_MODULE=fcitx
export XMODIFIERS=@im=fcitx
Then reload:
source ~/.bashrc
If you use zsh, put them in ~/.zshrc instead.
Step 4 β Reboot
After saving everything, reboot or log out and back into Hyprland. This should start
fcitx5 automatically.
Step 5 β Add Japanese (Mozc) in fcitx5
Launch the config tool:
fcitx5-configtool
Then:
βΈ On the left panel, click "+" to add input method
βΈ Search for Mozc and add it
βΈ Make sure it's below your default input method (like English)
βΈ Default toggle key is Ctrl + Space
Summaries
β
Set up the environment variables
β
Add fcitx5 to exec-once
β
Save your config file π
If you're using Arch with Hyprland and want to type Japanese, fcitx5 + mozc is solid . Let me know if you run into any issues!β
arch Β· hyprland Β· japanese
fcitx5 + mozc
π Like
π¬ Comment
β Share