diff options
Diffstat (limited to 'misc/ibus/profile.d')
-rw-r--r-- | misc/ibus/profile.d/ibus.csh | 17 | ||||
-rw-r--r-- | misc/ibus/profile.d/ibus.sh | 16 |
2 files changed, 33 insertions, 0 deletions
diff --git a/misc/ibus/profile.d/ibus.csh b/misc/ibus/profile.d/ibus.csh new file mode 100644 index 0000000000000..21eb33453efef --- /dev/null +++ b/misc/ibus/profile.d/ibus.csh @@ -0,0 +1,17 @@ +#!/bin/csh + +# ibus - Intelligent Input Bus for Linux / Unix OS. This is used to support the +# entering of text in non-US-English languages. + +[ -x /usr/bin/ibus-daemon ] +if ($status == 0) then + # Enable legacy X applications to use ibus: + setenv XMODIFIERS="@im=ibus" + # Enable Qt/KDE applications to use ibus. + setenv QT_IM_MODULE="ibus" + # Enable GTK applications to use ibus: + setenv GTK_IM_MODULE="ibus" + # Make ibus start automatically if the "magic key" Ctrl-Space is pressed: + setenv XIM_PROGRAM="/usr/bin/ibus-daemon -xdrt" +endif + diff --git a/misc/ibus/profile.d/ibus.sh b/misc/ibus/profile.d/ibus.sh new file mode 100644 index 0000000000000..86fd88d8d7454 --- /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 + |