$ cat /etc/X11/xinit/xinitrc.d/95scim
export LC_CTYPE=zh_CN.UTF-8
export XMODIFIERS="@im=scim"
export XIM="scim"
export XIM_PROGRAM="scim"
export XIM_ARGS="-d"
export GTK_IM_MODULE="scim"
export QT_IM_MODULE="scim"
NOTE:
1、QT程序需要安装模块插件scim-qtimm
2、chmod +x 95scim