LoginSignup
6
7

More than 3 years have passed since last update.

Manjaro で日本語入力をする方法

Last updated at Posted at 2019-06-01

はじめに

Manjaro Linux で日本語入力をできるようにする。

環境

  • Manjaro Linux 18.0.4 illyria
  • kernel: 4.19.45-1-MANJARO
  • i3wm

手順

基本設定

sudo pacman -S fcitx fcitx-mozc fcitx-im fcitx-configtool

~/.xprofile に設定を追加。

cat << EOF >> ~/.xprofile
export LANG="ja_JP.UTF-8"
export XMODIFIERS="@im=fcitx"
export XMODIFIER="@im=fcitx"
export GTK_IM_MODULE=fcitx
export QT_IM_MODULE=fcitx
export DefaultIMModule=fcitx
EOF

~/.bashrc に設定を追加。

cat << EOF >> ~/.bashrc
export GTK_IM_MODULE=fcitx
export XMODIFIERS=@im=fcitx
export QT_IM_MODULE=fcitx
EOF

fcitx の起動。

fcitx

「変換」、「無変換」キーの設定を変更

mac の「英数」、「かな」キーのように設定を変更する。

fcitx-configtool
  1. 「全体設定」タブ
  2. 「ホットキー」タブ
  3. 下の方にある「Show Advanced Options」にチェックをつける
  4. 「入力メソッドをオンに」-> 変換キー
  5. 「入力メソッドをオフに」-> 無変換キー

i3wm の場合

~/.i3/config に設定を追加。

cat << EOF >> ~/.i3/config
exec --no-startup-id fcitx
EOF

参考

6
7
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
6
7