Solving Korean input problems with fcitx in X11.

39.221.***.***
12

I have been using fcitx4 for a very long time (about 10 years?).

After using uim, beolru, and ibus input methods, I settled on fcitx.

---------------------------------------------

export GTK_IM_MODULE=fcitx

export QT_IM_MODULE=fcitx

export XMODIFIERS=@im=fcitx

----------------------------------------------


Six months ago, I installed fcitx5 for some reason. However, Korean input didn't work in Vivaldi/Brave/qt apps.

So I went back to fcitx4. But I encountered problems with spacing and half-width space characters. I couldn't solve them, so I just kept using it.

I also use the kitty terminal for image/video playback, but Korean input didn't work there either.

fcitx4 : sudo pacman -S fcitx fcitx-configtool fcitx-hangul

fctix5 : sudo pacman -S fcitx5 fcitx5-configtool fcitx5-hangul


I recently installed fcitx5 again, and the same problem occurred. I tried to reinstall fcitx(4), but it seems to have been completely removed from the universal repository.

Hmm...

I don't know what to do, so I'll just install everything and see if it works.

I installed all the packages that came up when I searched for fcitx5. As a result, Korean input worked in Vivaldi, Brave, and qt apps.

Although I didn't confirm by removing them, I think the "fcitx5-m17n" package was essential.

1. Using the fcitx5 input method in X11

sudo pacman -S fcitx5 fcitx5-configtool fcitx5-hangul fcitx5-m17n

It seems like that.


2. Korean input in X11 and kitty terminal

-----------------------------------------------------

# Fcitx Input Method Framework

export GTK_IM_MODULE=fcitx

export QT_IM_MODULE=fcitx

export XMODIFIERS="@im=fcitx"

export GLFW_IM_MODULE=ibus

----------------------------------------------------

I accidentally typed "ibus" instead of "fcitx" on the fifth line, and Korean input started working in kitty. Wow!!!


- Now, video playback and Korean input work well in the kitty terminal.

With the mpv version update, video playback now works well in kitty -> tmux as well.

| Midas's 439 bread, playing in kitty terminal tmux


- Ah, finally Korean input works in X11 and kitty terminal.

"export GLFW_IM_MODULE=ibus" I didn't know this one line, so for years I couldn't type Korean directly in kitty. I had to type in urxvt terminal and copy/paste. It's a shame.


3. Korean input in Telegram and rofi

The package installation mentioned above and the 4 lines of environment settings allow for Korean input in Telegram.

However, when I type "Telegram" in the terminal or execute it through a dmenu launcher, Korean input is possible. But when I type "Telegram" in my main launcher, "rofi," Korean input doesn't work.

I suspect that environment variables are not being properly passed to or ignored by rofi. So, I created the following two files:

3-1. $ touch ~/.local/bin/telegram_with_fcitx.sh

         $ chmod +x ~/.local/bin/telegram_with_fcitx.sh

---------------------------------------------------------------------------------------------

#!/bin/bash


export GTK_IM_MODULE=fcitx

export QT_IM_MODULE=fcitx

export XMODIFIERS=@im=fcitx

export INPUT_METHOD=fcitx

export SDL_IM_MODULE=fcitx

export GLFW_IM_MODULE=ibus


/usr/bin/Telegram

---------------------------------------------------------------------------------------------


3-2. $ cp /usr/share/applications/org.telegram.desktop.desktop ~/.local/share/applications/org.telegram.desktop.desktop

         $ vim ~/.local/share/applications/org.telegram.desktop.desktop

---------------------------------------------------------------------------------------------

[Desktop Entry]

Name=Telegram

Comment=New era of messaging

TryExec=Telegram

Exec=/home/nietz/.local/bin/telegram_with_fcitx.sh -- %U

Icon=org.telegram.desktop

Terminal=false

StartupWMClass=TelegramDesktop

Type=Application

Categories=Chat;Network;InstantMessaging;Qt;

MimeType=x-scheme-handler/tg;x-scheme-handler/tonsite;

Keywords=tg;chat;im;messaging;messenger;sms;tdesktop;

Actions=quit;

DBusActivatable=true

SingleMainWindow=true

X-GNOME-UsesNotifications=true

X-GNOME-SingleWindow=true


[Desktop Action quit]

Exec=Telegram -quit

Name=Quit Telegram

Icon=application-exit

---------------------------------------------------------------------------------------------


Hmm. Korean input still didn't work when I executed Telegram from rofi. It seems like a rofi configuration issue.

I read some related documents and invoked jami.

It says to disable dbus in rofi. Well, that's it... I'll modify the configuration file.


$ mkdir -p ~/.config/rofi

$ rofi -dump-config > ~/.config/rofi/config.rasi

$ vim ~/.config/rofi/config.rasi

Add the following content:

---------------------------------------------------------------------------------------------

drun {

    /** Disable DBusActivatable */

    DBusActivatable: false;

}

---------------------------------------------------------------------------------------------

I execute Telegram from rofi. Huh, Korean input works well.

Wow~ It was this simple... Holy !!!

I've been typing in Korean using vim for 10 years and copying/pasting it to Telegram. What a waste of time due to ignorance.

By disabling the dbus setting in rofi, I can now input Korean in rofi as well. Now I can search in Korean using rofi, enter Korean keywords for YouTube searches, etc.


X11, Fcitx5 Korean input usage seems to be based on these key points:

1. Install necessary Fcitx5 packages

2. Set Fcitx-related environment variables

3. Enable ibus IM in the kitty terminal

4. Disable dbus in the rofi launcher

I think that's it.


Thanks. Hope this helps someone....



- Today's movie recommendation: Ameba Bubble Fantastic - Sun Wukong

  New Year's first rice, rice eating....

[ kitty terminal -> tmux ] 2

   (In tmux, mpv only appeared at the top or left. It couldn't be fixed to the right/bottom position)

Right tmux: 1. yt-x -> mpv     2. rmpc     3. cava     4. rmpc -> ueberzugpp


- Music is everyone

  "Pear Desktop", "yt-x : mpv", "ytermusic", "tmux"


- workspace 3: nsxiv, pear-desktop, tmux (top: yt-x -> mpv youtube playlist | bottom: fastanime)  | workspace 4: tmux


- [Workspace 3 - Vertical Tall Layout] nsxiv(rmpc,mopidy, spotify cover), pear-desktop

- [Workspace 4 - Tabbed Simplest Layout] tmux(mmm - mpv , yazi)

- [Workapsce 5 - Full Layout ] NSP "Win + F9" toggle key - tmux(yt-x-> mpv youtube playlist, rmpc, cava, ncspot, ytermusic)

** kitty terminal,  1. Korean input works, and 2. tmux plays mpv videos are good points..

    In the terminal,  $ mmm 'Enmix music video'

    Press Enter, and immediately on YouTube "Enmix music video" will be searched for and played with hardware decoding (YouTube video quality codec stream change shortcut: "Capital F" key) .???.

    Hmm.. The ultimate playback finishing move, but don't I need a VPN anymore? You can bypass YouTube adult/regional authentication without turning the VPN on and off???


- ok : "Mod4 + f" ka :  Workspace Fullscreen toggle, 

  then , yazi "Ctrl + z" background <-> "fg" foreground

  Terminal. fd-fzf for local movie/drama/application/music search: fast....keyboard shortcut, Tui shortcuts are great.

  "Mansae!!!"


- kitty kitty kitty


로그인한 회원만 댓글 등록이 가능합니다.

개발한당

KR | ID | EN
  • IDR
  • KOR
8.34 0.01

2026.07.10 KEB 하나은행 고시회차 1694회

다가오는 한인 행사일정

  • 등록 된 일정이 없어요!