dotfiles

Personal dotfiles
git clone https://git.bracken.jp/dotfiles.git
Log | Files | Refs | LICENSE

commit 2d85b337c3ef1e6982fcffb2971614d563537b34
parent 520df5a94eeeca0a127506f6a7ca8a7d90472aba
Author: Chris Bracken <chris@bracken.jp>
Date:   Mon,  9 Mar 2020 15:20:51 -0700

Enable ibus IME support for Japanese

Diffstat:
M.config/sway/config | 15+++++++++++++++
M.zshenv | 5+++++
2 files changed, 20 insertions(+), 0 deletions(-)

diff --git a/.config/sway/config b/.config/sway/config @@ -9,6 +9,9 @@ # Configure Xresources settings. exec xrdb ~/.Xresources +# Start up ibus IME daemon. +exec ibus-daemon --xim + # Window title font font pango:IPAGothic 14, DejaVu Sans Mono 12 @@ -217,6 +220,18 @@ mode "resize" { bindsym $mod+r mode "resize" # +# Input manager: +# +bindsym $mod+i mode "j: japanese; e: english" + +mode "j: japanese; e: english" { + bindsym j exec ibus engine mozc-jp; mode "default" + bindsym e exec ibus engine xkb:jp::jpn; mode "default" + bindsym Return mode "default" + bindsym Escape mode "default" +} + +# # Status Bar: # # Read `man 5 sway-bar` for more information about this section. diff --git a/.zshenv b/.zshenv @@ -12,6 +12,11 @@ export LC_MONETARY=ja_JP.UTF-8 export LC_NUMERIC=en_AU.UTF-8 export LC_TIME=en_AU.UTF-8 +# Use ibus for Japanese IME. +export GTK_IM_MODULE=ibus +export XMODIFIERS=@im=ibus +export QT_IM_MODULE=ibus + # If a local perl5 directory exists, add PERL5LIB. if [[ -d "$HOME/.perl5/lib/perl5" ]]; then export PERL5LIB="$HOME/.perl5/lib/perl5:$PERL5LIB"