You are not logged in.

#1 2021-04-20 06:58:08

youngp74
Member
From: Seoul
Registered: 2017-10-19
Posts: 8

[SOLVED]keyboard input system in xfce and i3

I need Korean, English and Khmer keyboards.
In XFCE, I set up keyboard layout for Korean and Cambodia(Khmer). It was pretty easy to config in XFCE setting. Everything works well.
But I am mainly use i3 most of the time.  I configured Korean with UIM. Korean and English keyboard was pretty good. However, Khmer keyboard(m17n-km-yannis) does not work well. Some keys does not work. For examples, 'a' key must print khmer ា. but prints just 'a'. So I could not use Khmer keyboard in i3.
Is there anyway to use the same XFCE Cambodia Khmer keyboard in i3?

Last edited by youngp74 (2021-05-16 14:58:16)

Offline

#2 2021-04-20 07:43:12

seth
Member
Registered: 2012-09-03
Posts: 23,367

Re: [SOLVED]keyboard input system in xfce and i3

setxkbmap -layout us,kr,kh

?
You can also select different variants, https://wiki.archlinux.org/index.php/Xo … _setxkbmap
The definitions are in /usr/share/X11/xkb/symbols/

idk. whether you need uim or fcitx on top of that.

Offline

#3 2021-05-05 16:13:43

youngp74
Member
From: Seoul
Registered: 2017-10-19
Posts: 8

Re: [SOLVED]keyboard input system in xfce and i3

Thanks seth.....
  I tried that way. I got some helps. Most of things work well. But still not good as in XFCE4. In Cambodia Khmer, Shift A key is binded to ាំ. However, in i3 and gnome, it bined to ៿.

  So my question is that why xfce4 has correct key binding. What kind of keyboard layout do they use? Can I just copy it? What IME is the default in xfce4? Anyone knows what default IME does xfce4 use?

Offline

#4 2021-05-05 19:27:13

seth
Member
Registered: 2012-09-03
Posts: 23,367

Re: [SOLVED]keyboard input system in xfce and i3

Check "setxkbmap -print -query" on xfce and the process list ("ps aux") for possible input methods.
There's an "olpc" variant for khmer, but I've no idea what that is.

Offline

#5 2021-05-09 11:20:30

youngp74
Member
From: Seoul
Registered: 2017-10-19
Posts: 8

Re: [SOLVED]keyboard input system in xfce and i3

Thanks a lot seth...

OLPC looks like a NGO project to support laptop for kids. I found a docs on internet. http://wiki.laptop.org/go/OLPC_Khmer_Keyboard
This would be a good start for me.

Offline

#6 2021-05-09 12:13:27

seth
Member
Registered: 2012-09-03
Posts: 23,367

Re: [SOLVED]keyboard input system in xfce and i3

seth wrote:

Check "setxkbmap -print -query" on xfce and the process list ("ps aux") for possible input methods.

Offline

#7 2021-05-16 14:54:08

youngp74
Member
From: Seoul
Registered: 2017-10-19
Posts: 8

Re: [SOLVED]keyboard input system in xfce and i3

Now, I got all correct in XFCE and I3.
    xkb has a good keyboard for khmer. And there is no IE supporting Khmer. Most of them are not correct. Maybe iBus one could work.
    I setup uim-byeoru for Korean on XFCE4. For Khmer, I setup the default one from xkb(can be set up in XFCE keyboard). That worked fine.
    Later on I start to use I3.  And I setup uim-byeoru for Korean. and m17n for Khmer. Khmer did not work. So installed iBus for Korean and Khmer. However, iBus m17N Khmer some missing keys such as 'A'( ាំ )
    I spent serveral days until i found my idiot mistakes.
    From this, I realized that iBus Korea is little buggy. XKB Khmer keyboard is good.

    For later uses:
         For Khmer keyboard, need to use system default XKB is good enough
         To activate Khmer keyboard in I3, need to add below to i3 config file

                   

exec_always "setxkbmap -model pc104 -layout kr,kh -option grp:rctrl_toggle"

Offline

Board footer

Powered by FluxBB