Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save Kitsunetic/968ee9f3a974048a4a6261a5ed4759f0 to your computer and use it in GitHub Desktop.
Save Kitsunetic/968ee9f3a974048a4a6261a5ed4759f0 to your computer and use it in GitHub Desktop.
우분투 크롬에서 한영전환이 안될 때

일반적으로 IBUS로 키보드를 셋팅했을 때, 한영전환을 ALT_R, 한자 전환을 CONTROL_R 로 하는 경우가 많은데, 크롬에서는 이 ALT_R를 한영전환이 아니라 있는 그대로 ALT_R로 받아들이기 때문에 한영전환이 안 되는 것. 왜 크롬이 그렇게 작동하는지는 잘 모르겠다.

해결 방법은 아래 명령어를 실행하면 된다. ALT_R과 CONTROL_R의 키 맵을 변경하는 것.

xmodmap -e "remove mod1 = Alt_R"
xmodmap -e "keycode 0x6c = Hangul"
xmodmap -e "remove control = Control_R"
xmodmap -e "keycode 0x69 = Hangul_Hanja"

시작 시 실행되도록 /etc/profile 안에 써주면 될 듯함

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment