fmt: update to 11.1.2
[oi-userland.git] / components / inputmethod / ibus / files / ibus-xinput
blobbfa9b06caf753bd19acb6fe6b02b576e1e07f0d8
1 #!/bin/sh
3 # CDDL HEADER START
5 # The contents of this file are subject to the terms of the
6 # Common Development and Distribution License, Version 1.0 only
7 # (the "License"). You may not use this file except in compliance
8 # with the License.
10 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
11 # or http://www.opensolaris.org/os/licensing.
12 # See the License for the specific language governing permissions
13 # and limitations under the License.
15 # When distributing Covered Code, include this CDDL HEADER in each
16 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
17 # If applicable, add the following below this CDDL HEADER, with the
18 # fields enclosed by brackets "[]" replaced with your own identifying
19 # information: Portions Copyright [yyyy] [name of copyright owner]
21 # CDDL HEADER END
23 # Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
26 # Used in IMselect
27 show_name(){
28 print "IBus - Intelligent Input Bus"
31 show_prior(){
32 lang=$1
33 case $lang in
34 *) break;;
35 esac
38 case "X$1" in
39 'X-name') show_name; exit 0;;
40 'X-prior') show_prior $2; exit 0;;
41 esac
43 if [ -x /usr/bin/ibus-daemon ]; then
44 GTK_IM_MODULE='ibus'
45 export GTK_IM_MODULE
46 XMODIFIERS='@im=ibus'
47 export XMODIFIERS
49 XIM_PRG=/usr/bin/ibus-daemon
50 XIM_OPT=--xim
51 XIM_ASDAEMON=1