[skip-ci] chakra-common: include input method variables

This commit is contained in:
Chaoting Liu 2018-11-27 06:51:23 +01:00
parent 4e954665d4
commit 91ec487274
2 changed files with 6 additions and 12 deletions

View File

@ -3,7 +3,7 @@
pkgname=chakra-common
arch=('x86_64')
pkgver=18.08.3
pkgrel=2
pkgrel=4
pkgdesc="Common configuration files, scripts and artwork"
url="http://chakralinux.org"
license=('GPL' 'BSD')
@ -13,6 +13,7 @@ depends=("qt5-base"
'openssh'
'bash>=4.2'
'python3' 'python3-jinja' 'python3-pyelftools' 'python3-tqdm')
backup=('etc/profile.d/inputmethod.sh')
install=chakra-common.install
source=('Chakra-Bugs.desktop'
'Chakra-ChangeLog.desktop'
@ -40,7 +41,7 @@ sha256sums=('24e3e543fbeeb9bd902703e49dd682001c85c8faee85a6795d2501b65badfcda'
'b20160225a990513ae58027b7e70bb958253da881be02f296e54e9ccca09b348'
'9e0c9408c9bc12aeca2fd66a4723b57a6878307ba956df7cca43f8112dd71429'
'7e4ae4587973d6cc253b20ff7573ac25801f148f794a9000901c5137cd4780b3'
'2e24a7256a37ae475c4b301537edeaffede34cf428fb69c97d43f051d8c59e90'
'c931c42f3286b0f02b0ab192dfe580952dcb677a74f3fb393d17bae30ec1cf79'
'cad07d94408ba5c385b483316098dbffc35ab7220990c4c607634eb2f4a2399f')
package() {

View File

@ -1,16 +1,9 @@
# The locales which require a more dedicated input framework
_locale=(ja_JP ko_KR zh_CN zh_HK zh_TW)
# Default input framework for Chakra is fcitx
# If you want to use ibus as your input framework
# Change it to 'ibus' and relogin
_ime=fcitx
# Export environmental variables when login
for lang in $_locale[@]; do
if [[ $LANG == $lang.UTF-8 ]]; then
export GTK_IM_MODULE=$_ime
export QT_IM_MODULE=$_ime
export XMODIFIERS="@im=$_ime"
fi
done
export GTK_IM_MODULE=$_ime
export QT_IM_MODULE=$_ime
export XMODIFIERS="@im=$_ime"