You are not logged in.

#1 2019-04-09 17:10:17

owm
Member
Registered: 2019-03-13
Posts: 12

[Probable duplicate and/or dumb] Switch between US, intl, and jp kbs

As suggested in the title, this question is probably a duplicate question or just a dumb question.
I am using Arch without a DE (just a WM), and I was wondering how to be able to switch between US, US International, and Japanese (with an IM, e.g. Anthy) with a keybind (e.g. Alt-Space). I set up xkb for switching between US and US International the way I'd like:

setxkbmap -model dell -layout us,us -variant ,intl -option grp:alt_space_toggle

That works great for just US keyboards. However, I'd like to add Japanese (with an IM) to these layouts/keyboards. Installing the uim and anthy packages allows for Japanese input with Shift-Space, but I'd like it to enable Anthy when I switch keyboard layouts (with Alt-Space). I've seen this behavior in GNOME, however I'd like to avoid a DE if possible. Is there a way I can do this? If so, how?

For clarification, right now I have, in my .xinitrc:

export GTK_IM_MODULE='uim'
export QT_IM_MODULE='uim'
uim-xim &
export XMODIFIERS='@im=uim'
setxkbmap -model dell -layout us,us,jp -variant ,intl, -option grp:alt_space_toggle

Which allows me to switch between us, us(intl), and jp keyboards with Alt-Space, and enable IM with Shift-Space.
However, I would like IM to automatically enable with the jp layout, similar to how is possible in GNOME.

Offline

Board footer

Powered by FluxBB