dotfiles

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

commit 4d8af43bfeaaffe82cfc0bd466ca6d4db7871e33
parent 727175126a33548eb5cfc9f995e6210fdb26c307
Author: Chris Bracken <chris@bracken.jp>
Date:   Wed, 12 Jun 2019 17:19:16 -0700

Remap context-menu key to zenkaku/hankaku

Useful for switching between Japanese IME input modes on US keyboards
where there isn't a zenkaku/hankaku key.

Also sets GTK_IM_MODULE and other relevant environment variables for
ibus.

Diffstat:
M.xinitrc | 12+++++++++++-
1 file changed, 11 insertions(+), 1 deletion(-)

diff --git a/.xinitrc b/.xinitrc @@ -1,7 +1,17 @@ -# Remap caps lock to ctrl +# Remap caps lock to ctrl. if [[ -x "$(which setxkbmap)" ]]; then setxkbmap -option ctrl:nocaps fi +# Set the context-menu key to Zenkaku/Hankaku. +if [[ -x "$(which xmodmap)" ]]; then + xmodmap -e "keysym Menu = Zenkaku_Hankaku" +fi + +# Use ibus for Japanese IME. +export GTK_IM_MODULE=ibus +export XMODIFIERS=@im=ibus +export QT_IM_MODULE=ibus + xrdb -load $HOME/.Xresources /usr/local/bin/i3