summaryrefslogtreecommitdiff
path: root/misc/sunpinyin/profile.d/sunpinyin.csh
blob: 26db802153307a73a8e38b571724d55310e16efe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/csh

# SunPinyin is a statistical language model based Chinese input method, which
# was firstly developed by Sun Beijing Globalization team.

[ -x /usr/bin/xsunpinyin ]
if ($status == 0) then
  # Enable legacy X applications to use sunpinyin:
  setenv XMODIFIERS="@im=xsunpinyin"
  # Enable Qt/KDE applications to use sunpinyin.
  setenv QT_IM_MODULE="XIM"
  # Enable GTK applications to use sunpinyin:
  setenv GTK_IM_MODULE="XIM"
  # Make sunpinyin start automatically if the "magic key" Ctrl-Space is pressed:
  setenv XIM_PROGRAM="/usr/bin/xsunpinyin -d"
endif