|
首先把下面的内容保存为xinputrc放到/usr/local/bin
再执行
#chmod a+x /usr/local/bin/xinputrc
给脚本加上可执行属性。
然后
#ln -s /usr/local/bin/xinputrc /etc/X11/xinit/xinitrc.d/100xinputrc
另外还需要一个配置文件xinput.conf, 默认的位置为/etc/conf.d/,个人配置文件为~/.xinput.conf
参考内容如下:
- #x input mathod program
- #fcitx, scim, skim
- #any of your favourite im.
- program="skim"
- #x input mathod program parameters
- #if you use fcitx, just set it to none.
- #scim & scim need a addtion option `d' to
- #tell them run as daemon.
- parameters="-d"
- #real xinput mothod server
- #some times the im program is not the real im server
- #so it's necessary to tell 'xinputrc' who is the real sever.
- #but now 'xinputrc' know the skim's im server is scim
- #instead of skim, you can comment out the following line
- #it will be work too.
- realserver="scim"
- #delay a few seconds to load xinput mothod server
- #to prevent freeze your desktop enviroment while run xim program before
- #loading it in some case.
- #delay_time=0
- #im module setting for gtk & qt
- #set both of them to xim by default.
- gtk_im_module="xim"
- qt_im_module="xim"
- #use another locale instead of default settings
- #you should not use any LC_* enviroment variable here.
- #setxlocale='true' | 'false'
- #XLANGUAS="zh_CN.GB18030"
- #XLANG="zh_CN"
- #XLC_ALL=zh_CN.GB18030
- #XLC_CTYPE="zh_CN.GB18030"
- #XLC_NUMERIC="zh_CN.GB18030"
- #XLC_TIME="zh_CN.GB18030"
- #XLC_COLLATE="zh_CN.GB18030"
- #XLC_MONETARY="zh_CN.GB18030"
- #XLC_MESSAGES="zh_CN.GB18030"
- #XLC_PAPER="zh_CN.GB18030"
- #XLC_NAME="zh_CN.GB18030"
- #XLC_ADDRESS="zh_CN.GB18030"
- #XLC_TELEPHONE="zh_CN.GB18030"
- #XLC_MEASUREMENT="zh_CN.GB18030"
- #XLC_IDENTIFICATION="zh_CN.GB18030"
复制代码
好了,到这里就大功造成了。 |
|