:bulb: 영문으로 설치된 Ubuntu 16.04 환경에서 fcitx-hangul을 이용해 한글 입력을 활성화하고 한영 전환 단축키를 설정하는 방법을 정리한다.

[01] 환경

  • 운영체제: Ubuntu 16.04 64bit
  • 영문 키보드, 언어 설치

[02] 한글 패키지 설치

  1. 한글 패키지 설치

    1
    
    sudo apt-get install fcitx-hangul
    
  2. System Setting - Language Support 실행 후, 미설치분 설치 완료

    ubuntu-install-hangul-01

    그림 1. Language Support 설치 화면

    ubuntu-install-hangul-02

    그림 2. 언어 패키지 설치 완료 화면

  3. Keyboard input method system 부문 fcitx로 설정

    ubuntu-install-hangul-03

    그림 3. 입력기를 fcitx로 변경

  4. 시스템 재부팅

[03] 단축키 (한/영) 전환 설정 — Ubuntu Setting 사용

  1. AllSettings - Keyboard - Shortcuts Tab - Typing

    ubuntu-hangul-shortcut-01

    그림 4. Keyboard Shortcuts - Typing 탭

  2. Disable 설정

    Switch to Next source / Switch to Previous source Compose Key / Alternative Characters Key

    ubuntu-hangul-shortcut-02

    그림 5. 기존 단축키 Disable 처리

    • 옵션 부분 클릭 후, 백스페이스 키를 누르면 Disable로 변경 가능함
  3. Compose Key 옵션 = Right Alt 및 Switch to next source 옵션 = Multikey

    ubuntu-hangul-shortcut-03

    그림 6. Compose Key 및 Multikey 설정

    • 한영키를 누르면 Multikey로 설정 가능함
    • Compose Key가 설정된 상태에서 수행해야함
  4. 바탕화면 키보드 레이아웃 설정(오른쪽 상단의 키보드 표시) - Configure Current Input Method

    ubuntu-hangul-shortcut-04

    그림 7. Configure Current Input Method 진입

  5. Input Method에 Hangul이 추가되어 있지 않으면, + 버튼을 클릭 후 Hangul을 추가함

    • Only Show Current Language의 체크를 해제해 주면 검색이 가능함

    ubuntu-hangul-shortcut-05

    그림 8. Hangul Input Method 추가

  6. Global Config 설정

    • Trigger Input Method 부분을 Multikey 로 지정
    • Extra key for trigger input method 을 Disabled 로 지정

    ubuntu-hangul-shortcut-06

    그림 9. Global Config - Trigger Input Method 설정

[04] 단축키 설정 — 프로그램(dconf-Editor) 사용

Ubuntu Setting을 통해 단축키 지정 시, Switch to next source의 옵션이 정상적으로 변경되지 않을 경우, 별도로 제공되는 프로그램을 설치 후 직접 설정하는 방법을 사용한다.

Error

1

그림 10. Switch to next source 오류 화면

  1. dconf-Editor 설치

    1
    
    sudo apt-get install dconf-tools
    
  2. dconf Editor 실행

    4

    그림 11. dconf Editor 실행 화면

  3. org - gnome - desktop - wm - keybindings

    • switch-input-source : Hangul
    • switch-input-source-backward : Hangul

    5

    그림 12. dconf keybindings 설정 화면