imsettings
输入法设置工具
[qoiuy@localhost ~]$ imsettings-
imsettings-info imsettings-list imsettings-reload imsettings-switch
---------------------------------------------------------------------------------------------------------------
[qoiuy@localhost ~]$ imsettings-info
Xinput file: /etc/X11/xinit/xinput.d/none.conf
GTK+ immodule: gtk-im-context-simple
Qt immodule: xim
XMODIFIERS: @im=none
XIM server:
Preferences:
Auxiliary:
Short Description: none
Long Description:
Icon file: imsettings-unknown
Is system default: FALSE
Is user default: FALSE
Is XIM server: FALSE
[qoiuy@localhost ~]$ cd /etc/X11/xinit/xinput.d/none.conf
bash: cd: /etc/X11/xinit/xinput.d/none.conf: 不是目录
[qoiuy@localhost ~]$ cd /etc/X11/xinit/xinput.d/
[qoiuy@localhost xinput.d]$ ls -al
总用量 24
drwxr-xr-x. 2 root root 4096 4月 10 21:15 .
drwxr-xr-x. 5 root root 4096 4月 10 21:58 ..
-rw-r--r--. 1 root root 355 7月 4 2013 fcitx.conf
-rw-r--r--. 1 root root 110 11月 26 18:04 none.conf
-rw-r--r--. 1 root root 146 11月 26 18:04 xcompose.conf
-rw-r--r--. 1 root root 1652 11月 26 18:04 xim.conf
[qoiuy@localhost xinput.d]$
------------------------------------------------------------------------------------------------->
vi fcitx.conf
->
XIM=fcitx
XIM_PROGRAM=/usr/bin/fcitx
ICON="/usr/share/pixmaps/fcitx.png"
XIM_ARGS="-D"
PREFERENCE_PROGRAM=/usr/bin/fcitx-configtool
SHORT_DESC="FCITX"
GTK_IM_MODULE=fcitx
if test -f /usr/lib/qt4/plugins/inputmethods/qtim-fcitx.so || \
test -f /usr/lib64/qt4/plugins/inputmethods/qtim-fcitx.so;
then
QT_IM_MODULE=fcitx
else
QT_IM_MODULE=xim
fi
------->
vi none.conf
->
XIM=none
XIM_PROGRAM=
XIM_ARGS=
GTK_IM_MODULE=gtk-im-context-simple
QT_IM_MODULE=xim
IMSETTINGS_IGNORE_ME=yes
-------->
vi xcompose.conf
->
XIM=none
XIM_PROGRAM=/bin/true
XIM_ARGS=
GTK_IM_MODULE=xim
QT_IM_MODULE=xim
SHORT_DESC="X compose table"
LONG_DESC="X locale based compose table"
-------->
vi xim.conf
->
# -*- mode: shell-script -*-
# xim - xinput script to choose the better XIM server against current locale.
#
# Copyright (C) 2006-2011 Red Hat, Inc. All rights reserved.
#
# This script is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This script is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the
# Free Software Foundation, Inc., 51 Franklin Street, Fifth
# Floor, Boston, MA 02110-1301 USA
xim_tmplang=${LC_CTYPE:-${LANG:-"en_US.UTF-8"}}
xim_lang_region=$(echo $xim_tmplang | sed -e 's/\..*//' -e 's/@.*//' | tr '[:upper:]' '[:lower:]')
xim_lang_ll=$(echo $xim_lang_region | sed -e 's/^\([a-z].*\)_.*/\1/')
xim_lang_cc=$(echo $xim_lang_region | sed -e '/.*_[a-z].*/{s/.*_\([a-z].*\)/\1/;p};{d}' | tr '[:lower:]' '[:upper:]')
if [ "x${xim_lang_cc}" != "x" ]; then
xim_lang_ll_CC="${xim_lang_ll}_${xim_lang_cc}"
else
xim_lang_ll_CC=${xim_lang_region}
fi
if [ -r /etc/X11/xinit/xinput.d//${xim_lang_ll_CC} ]; then
source /etc/X11/xinit/xinput.d//${xim_lang_ll_CC}
# ensure GTK_IM_MODULE and QT_IM_MODULE is xim.
GTK_IM_MODULE=xim
QT_IM_MODULE=xim
else
source /etc/X11/xinit/xinput.d//none.conf
fi
unset xim_tmplang xim_lang_region
XIM=fcitx
XIM =中文输入法
XIM_PROGRAM=/usr/bin/fcitx
XIM_PROGRAM = / usr / bin /中文输入法
ICON="/usr/share/pixmaps/fcitx.png"
图标= " / usr /分享/ pixmaps / fcitx.png”
XIM_ARGS="-D"
XIM_ARGS = " d "
PREFERENCE_PROGRAM=/usr/bin/fcitx-configtool
PREFERENCE_PROGRAM = / usr / bin / fcitx-configtool
SHORT_DESC="FCITX"
SHORT_DESC =“中文输入法”
GTK_IM_MODULE=fcitx
GTK_IM_MODULE =中文输入法
if test -f /usr/lib/qt4/plugins/inputmethods/qtim-fcitx. so || \
如果测试- f / usr / lib / qt4 /插件/ inputmethods / qtim-fcitx。所以| | \
test -f /usr/lib64/qt4/plugins/inputmethods/qtim-fcitx.so;
测试- f / usr / lib64 / qt4 /插件/ inputmethods / qtim-fcitx.so;
then
然后
QT_IM_MODULE=fcitx
QT_IM_MODULE =中文输入法
else
其他的
QT_IM_MODULE=xim
QT_IM_MODULE = xim
fi
FI
---------------------------------------------------------------------------------->
XIM=none
XIM =没有
XIM_PROGRAM=
XIM_PROGRAM =
XIM_ARGS=
XIM_ARGS =
GTK_IM_MODULE=gtk-im-context-simple
GTK_IM_MODULE = gtk-im-context-simple
QT_IM_MODULE=xim
QT_IM_MODULE = xim
IMSETTINGS_IGNORE_ME=yes
IMSETTINGS_IGNORE_ME = yes
-------------------------------------------------------------------------------->
XIM=none
XIM_PROGRAM=/bin/true
XIM_ARGS=
GTK_IM_MODULE=xim
QT_IM_MODULE=xim
SHORT_DESC="X compose table"
LONG_DESC="X locale based compose table"
--------------------------------------------------------------------------->
# -*- mode: shell-script -*-
# - * -模式:shell-script - * -
# xim - xinput script to choose the better XIM server against current locale.
# xim - xinput脚本选择更好的xim服务器对当前的语言环境。
#
#
# Copyright (C) 2006-2011 Red Hat, Inc. All rights reserved.
#版权(C)2006 - 2011 Red Hat,公司保留所有权利。
#
#
# This script is free software; you can redistribute it and/or modify
#这个脚本是免费软件,你可以重新分配和/或修改
# it under the terms of the GNU General Public License as published by
#它GNU通用公共许可证的条款下发布的
# the Free Software Foundation; either version 2 of the License, or
#自由软件基金会;版本2的许可,或
# (at your option) any later version.
#(在您的选择)任何后来的版本。
#
#
# This script is distributed in the hope that it will be useful,
#这个脚本分发,希望这将是有用的,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
#但是没有任何保证,甚至没有的默示保证
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
#适销性或健身为特定目的。看到
# GNU General Public License for more details.
# GNU通用公共许可证的更多细节。
#
#
# You should have received a copy of the GNU Lesser General Public
#你应该收到一份GNU Lesser General公众
# License along with this library; if not, write to the
#许可连同这个库;如果没有,写的
# Free Software Foundation, Inc., 51 Franklin Street, Fifth
#自由软件基金会,Inc . 51富兰克林街,第五
# Floor, Boston, MA 02110-1301 USA
#楼,波士顿,MA 02110 - 1301美国
xim_tmplang=${LC_CTYPE:-${LANG:-"en_US.UTF-8"}}
xim_tmplang = $ { LC_CTYPE:- $ { LANG:-“en_US.UTF-8 } }
xim_lang_region=$(echo $xim_tmplang | sed -e 's/\.. *//' -e 's/@. *//' | tr '[:upper:]' '[:lower:]')
xim_lang_region = $(echo $ xim_tmplang | sed - e ' s / \ . .* / /‘e’s / @。* / / | tr的[:上:“[:低:]”)
xim_lang_ll=$(echo $xim_lang_region | sed -e 's/^\([a-z].*\)_.*/\1/')
xim_lang_ll = $(echo $ xim_lang_region | sed - e ' s / ^ \ \[a - z]。* _。* / \ 1 / ')
xim_lang_cc=$(echo $xim_lang_region | sed -e '/.*_[a-z].*/{s/.*_\([a-z].*\)/\1/;p};{d}' | tr '[:lower:]' '[:upper:]')
xim_lang_cc = $(echo $ xim_lang_region | sed - e”。* _[a - z]。* / { s / . * _ \[a - z]。* \)/ \ 1 /;p },{ d }’| tr(低:)的“[:上:]”)
if [ "x${xim_lang_cc}" ! = "x" ]; then
如果(“x $ { xim_lang_cc }”!= " x ");
xim_lang_ll_CC="${xim_lang_ll}_${xim_lang_cc}"
xim_lang_ll_CC = " $ { xim_lang_ll } _ $ { xim_lang_cc } "
else
其他的
xim_lang_ll_CC=${xim_lang_region}
xim_lang_ll_CC = $ { xim_lang_region }
fi
FI
if [ -r /etc/X11/xinit/xinput. d//${xim_lang_ll_CC} ]; then
如果(- r / etc / X11 / xinit / xinput。d / / $ { xim_lang_ll_CC });然后
source /etc/X11/xinit/xinput.d//${xim_lang_ll_CC}
源/ etc / X11 / xinit / xinput.d / / $ { xim_lang_ll_CC }
# ensure GTK_IM_MODULE and QT_IM_MODULE is xim.
#确保GTK_IM_MODULE QT_IM_MODULE xim。
GTK_IM_MODULE=xim
GTK_IM_MODULE = xim
QT_IM_MODULE=xim
QT_IM_MODULE = xim
else
其他的
source /etc/X11/xinit/xinput.d//none.conf
源/ etc / X11 / xinit / xinput.d / / none.conf
fi
FI
unset xim_tmplang xim_lang_region
设置xim_tmplang xim_lang_region