You are not logged in.

#1 2012-05-29 15:00:04

Sotanaht
Member
Registered: 2012-01-14
Posts: 29

Disable ibus in specific programs

Is there a way to stop ibus from working in specific programs?  If I use a program like eclipse, and try Control-Space to auto-complete, ibus input gets enabled instead, and I have to close ibus.  I know I could just remap it to a shortcut that won't interfere with anything, but all of the programs that it's an issue in are programs I don't need ibus for, and I'm fond of the Control-Space keybinding.  Is there some way I could create a sort of blacklist of programs for ibus?

Offline

#2 2012-05-29 20:04:37

ewtoombs
Member
Registered: 2009-07-23
Posts: 28

Re: Disable ibus in specific programs

ibus requires the environment variables GTK_IM_MODULE and/or XMODIFIERS. Unsetting them before starting the program you don't want ibus to run in might work. you could make a script called no-ibus that looks something like this:

#!/bin/bash
unset GTL_IM_MODULE
unset XMODIFIERS
exec "$@"

Then replace eclipse with no-ibus eclipse in the relevant desktop files.

Offline

Board footer

Powered by FluxBB