[kde-linux] Keyboard layout problem

James Richard Tyrer tyrerj at acm.org
Tue May 26 03:35:08 UTC 2009


Alain M. wrote:
> James Richard Tyrer escreveu:
>> Alain M. wrote:
>>> this maybe a little OT, but it is KDE related too, so plese help me...
>>>
>>> Here in Brazil we use accents like "���". My keyboard is US, so I use 
>>> the alt-intl Variant. I can do this with the command:
>>>    setxkbmap -model pc101 -layout us -variant alt-intl
>>>
>>> The problem is that DOSEMU gets confused with that and I have to revert 
>>> to basic with the command:
>>>    setxkbmap -model pc101 -layout us -variant basic
>>>
>>> But this is a *global setting* :(
>>>
>>> WHAT I WANT is a ay to set that just for one application, is it possible?
>>>
>>> I have it working with a double layout, with an icon in systray to 
>>> select them. But this is not practical...
>>>
>> IIUC, you have the SysTray widget running.
>>
>> Have you configured this, set the "Switching Policy" to "Application"?
> 
> Yes, that is the best that I got untill now. It works...
> 
> I just wonder if that "Policy Switch" can be done from within the 
> script? In that way, Y could have more control about when I want wich 
> keyboard policy. And also prevent user errors :)
> 
I don't know how KDE does this, however the X keyboard map setting does 
not follow the execution tree like changes in the environment variables 
does.  If you run the "setxkbmap" command, it affects every application 
that you run in the current X session.

-- 
JRT

Linux (mostly) From Scratch




More information about the kde-linux mailing list