summaryrefslogtreecommitdiff
path: root/misc/ibus/profile.d/ibus.sh
diff options
context:
space:
mode:
authorGrissiom <chaos.proton@gmail.com>2010-05-13 00:59:27 +0200
committerDavid Somero <xgizzmo@slackbuilds.org>2010-05-13 00:59:27 +0200
commitb237120bce2dd395533d61412094a952db06d82f (patch)
tree9c5a02c15916b5632808dae14567f127fbce1482 /misc/ibus/profile.d/ibus.sh
parentc192e692eaf051c62dc70f7d2e4530dce6953e39 (diff)
downloadslackbuilds-b237120bce2dd395533d61412094a952db06d82f.tar.gz
misc/ibus: Added to 13.0 repository
Diffstat (limited to 'misc/ibus/profile.d/ibus.sh')
-rw-r--r--misc/ibus/profile.d/ibus.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/misc/ibus/profile.d/ibus.sh b/misc/ibus/profile.d/ibus.sh
new file mode 100644
index 0000000000..86fd88d8d7
--- /dev/null
+++ b/misc/ibus/profile.d/ibus.sh
@@ -0,0 +1,16 @@
+#!/bin/sh
+
+# ibus - Intelligent Input Bus for Linux / Unix OS. This is used to support the
+# entering of text in non-US-English languages.
+
+if [ -x /usr/bin/ibus-daemon ]; then
+ # Enable legacy X applications to use ibus:
+ export XMODIFIERS="@im=ibus"
+ # Enable Qt/KDE applications to use ibus.
+ export QT_IM_MODULE="ibus"
+ # Enable GTK applications to use ibus:
+ export GTK_IM_MODULE="ibus"
+ # Make ibus start automatically if the "magic key" Ctrl-Space is pressed:
+ export XIM_PROGRAM="/usr/bin/ibus-daemon -xdrt"
+fi
+