Skip to content

Instantly share code, notes, and snippets.

@adnan360
Last active October 18, 2021 12:09
Show Gist options
  • Save adnan360/2b6d1902bf6e289775df0f5cc9195843 to your computer and use it in GitHub Desktop.
Save adnan360/2b6d1902bf6e289775df0f5cc9195843 to your computer and use it in GitHub Desktop.
How to write Bangla in Arch/Manjaro Linux KDE (Plasma 5) (every app including Libreoffice, KDE apps)

How to setup/write in Bangla/Bengali in KDE using unijoy layout.

This instruction was tested on Manjaro 17 KDE, which had Plasma 5.9.3, Qt 5.8.0, KDE Frameworks 5.31.0. Libreoffice Version: 5.2.5.1.

Open a terminal and run:

sudo pacman -S ibus ibus-qt ibus-m17n m17n-db

Run:

qtconfig-qt4

In Interface > Default Input Method, select ibus instead of xim.

Run:

ibus-daemon --xim -drx --desktop=kde
  • Right click icon from tray - Preference, and setup as usual.
  • Setup Keyboard Shortcut to your liking.
  • Go to Input Method tab, click Add, click 3-dotted button,
  • choose "Bengali", then "unijoy (m17n)"

Add in ~/.bashrc:

export XMODIFIERS=@im=ibus

Add in ~/.xprofile:

# ibus
export GTK_IM_MODULE=ibus
export XMODIFIERS=@im=ibus
export QT_IM_MODULE=ibus
# libreoffice
export OOO_FORCE_DESKTOP="gnome"
# 
ibus-daemon --xim -drx --desktop=kde

Note: the OOO_FORCE_DESKTOP line will cause to change the toolbar icons of Libreoffice. This line may not be needed since we are installing ibus-qt. You can try with commenting this line to be sure.

After all this, restart your pc (or logout and login again) and open any app, try the ibus Keyboard Shortcut and type Bangla! (Mine is Super/Win key+Space by default)

I did not try Kimpanel integration. But here might be a good place to look.

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