How to type Korean on Ubuntu (add Korean to IBus, the 한/영 key, Shift+Space, Right Alt)
The Ubuntu desktop (GNOME) usually puts text in through an input method framework called IBus. Korean is typed with a Korean input method that plugs into it, ibus-hangul. When Korean won’t type, it is usually one of three things:
- The Korean input method isn’t installed.
- Korean hasn’t been added to your input sources.
- You picked the Korean input source, but it is in English mode. ibus-hangul starts in English mode.
The steps below are for Ubuntu 24.04. Where 22.04 is different, it says so.
1. Install the Korean input method
Install it from a terminal. ibus-hangul is the Korean input method for IBus, in Ubuntu’s main repository.
sudo apt install ibus-hangul
ibus restart
ibus restart restarts IBus. Logging out and back in works too.
Instead of the terminal, you can install Korean through Language Support. Go to Settings → System → Region & Language → Manage Installed Languages, click Install / Remove Languages…, check Korean and apply. Installing a language also turns on its spell-checking dictionaries, fonts and input methods. On 22.04 the same button is under Settings → Region & Language.
2. Add Korean to your input sources
- Open Settings → Keyboard.
- Click + Add Input Source… under Input Sources (just + on 22.04).
- Choose Korean, then Korean (Hangul), and click Add.
Now switch input sources with Super+Space. Shift+Super+Space goes the other way. You can change these shortcuts in the Keyboard settings under Keyboard Shortcuts → View and Customize Shortcuts → Typing.
3. Switch between Korean and English: the 한/영 key, Shift+Space
Even after you pick the Korean input source, it starts in English mode. These are ibus-hangul’s default keys:
- Hangul ↔ English: the 한/영 key or Shift+Space
- Hanja conversion: the Hanja key or F9
Super+Space switches input sources (for example, English (US) and Korean). The 한/영 key switches between Hangul and English inside the Korean input method. You can type English inside the Korean input method too, so the 한/영 key alone is enough.
To change the keys, click ⋮ next to Korean in the input source list and choose Preferences. You can also open it from a terminal with ibus-setup-hangul. There you can add or remove 한/영 keys and make it start in Hangul mode.
4. Use Right Alt as the 한/영 key
If your keyboard has no 한/영 key, use Shift+Space, or turn Right Alt into a 한/영 key with the layout option korean:ralt_hangul (“Make right Alt a Hangul key”). There is also korean:rctrl_hanja to use Right Ctrl as the Hanja key.
To turn it on with GNOME Tweaks (gnome-tweaks), go to Keyboard → Layout → Additional Layout Options, open Korean Hangul/Hanja keys and choose Make right Alt a Hangul key. On 22.04 the same button is on the Keyboard & Mouse page. If Tweaks isn’t installed, install it with sudo apt install gnome-tweaks.
You can also do it from the command line. First check whether you already have any options turned on:
gsettings get org.gnome.desktop.input-sources xkb-options
If it is empty, like @as [], turn it on like this. If there are options already, add 'korean:ralt_hangul' to that list instead, because the command below replaces the whole list.
gsettings set org.gnome.desktop.input-sources xkb-options "['korean:ralt_hangul']"
5. If it still doesn’t work
- Check whether another input method framework is running. Run
im-config -morecho $GTK_IM_MODULE $QT_IM_MODULE. If you seefcitxorkime, a framework other than IBus is on. To use GNOME’s input sources, switch to IBus withim-config -n ibusand log in again. To go back, run the same command with the previous name (for example,im-config -n fcitx5). - If Korean (Hangul) isn’t in the input source list, check that ibus-hangul is installed, then run
ibus restartor log in again. - If you picked the Korean input source but only get English, press the 한/영 key or Shift+Space. It starts in English mode.
Press the 한/영 key less: Catchtype
Once Korean types properly, there is still the switching. If you mix code and Korean, you press the 한/영 key all day. Catchtype fixes text you typed with Korean and English mixed up as you type, and switches your Korean/English state along with it. It is a free beta for Linux, Mac and Windows (0.3.0-beta.25), with no account needed.
On Linux, Catchtype is an IBus input method. It appears in your input sources as Korean (Catchtype), and once picked it fixes 한/영 as you type.
- Type
PR flqb qnxkremfudyin English mode and it becomesPR 리뷰 부탁드려요(“could you review the PR?”).git pushtyped in Hangul mode goes back to English. - It runs on Ubuntu 22.04, Debian 12 and Fedora 36 or later (IBus 1.5.26 or later).
- The 한/영 key and Shift+Space switch between Korean and English. Press one right after an automatic change to get back what you typed.
- Ctrl+Alt+W pauses automatic switching. While paused, it is a plain two-set Korean input method that changes nothing on its own.
- It is still an early version, tested only on X11 and GNOME Wayland in containers. It doesn’t run in kime, and on GNOME Wayland it can’t be turned off for single apps. An fcitx5 addon is included as a preview (Linux guide).
Get the .deb from Download and install it from the folder you downloaded it to (usually ~/Downloads):
cd ~/Downloads
sudo apt install ./catchtype_<version>_amd64.deb
ibus restart
Then add Korean (Catchtype) to your input sources as in step 2 and pick it with Super+Space. KDE, other distributions and uninstalling are in the Linux guide. You can also try it on the home page before you install.
Frequently asked questions
The 한/영 switch doesn’t work on Ubuntu.
First check that the Korean (Hangul) input source is selected in the top bar (switch with Super+Space). If it is, press the 한/영 key or Shift+Space. ibus-hangul starts in English mode.
What is the difference between Super+Space and the 한/영 key?
Super+Space switches input sources (English (US), Korean and so on). The 한/영 key and Shift+Space switch between Hangul and English inside the Korean input method.
My keyboard has no 한/영 key.
Switch with Shift+Space, or make Right Alt a 한/영 key with the layout option korean:ralt_hangul (step 4 above).
I used fcitx5 and want to go back to IBus.
Run im-config -n ibus and log in again. Then add Korean in Settings → Keyboard → Input Sources.
How do I make ibus-hangul start in Hangul mode?
Open its Preferences (⋮ next to Korean in the input source list, or ibus-setup-hangul in a terminal) and change the starting mode to Hangul.
Sources
- GNOME Help: Use alternative keyboard layouts
- Ubuntu Desktop documentation: Install languages
- Ubuntu packages: ibus-hangul (24.04)
- Ubuntu source: ibus-hangul default key settings
- Ubuntu manual: xkeyboard-config(7)
- Ubuntu manual: im-config(8)
- Ubuntu manual: ibus(1)