[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: American keyboard



On Sunday 05 February 2006 8:45 pm, Matej Cepl wrote:

> *too*!!! you have TWO definitions of keyboard? Can you please post content
> of "ServerLayout" section?

Nah, that's not what it means.  I'm not sure exactly what it does mean, and 
I'm too lazy to go read the docs.  This part of the file is all 
auto-generated except for the bits I just added, which you should recognize:

Section "InputDevice"
        Identifier      "Generic Keyboard"
        Driver          "keyboard"
        Option          "CoreKeyboard"
        Option          "XkbRules"      "xorg"
        Option          "XkbModel"      "pc104"
        Option          "XkbLayout"     "us,es"
        Option          "XkbOptions"    
"compose:caps,ctrl:ctrl_aa,lv3:ralt_switch,grp_led:scroll,grp:shifts_toggle"
EndSection

And then this bit:

Section "ServerLayout"
        Identifier      "Default Layout"
        Screen          "Default Screen"
        InputDevice     "Generic Keyboard"
        InputDevice     "Configured Mouse"
EndSection


> What happens when you run this in konzole/xterm?

Warning! Multiple definitions of rules file
         Using command line, ignoring X server
Warning! Multiple definitions of keyboard model
         Using command line, ignoring X server
Warning! Multiple definitions of keyboard layout
         Using command line, ignoring X server
Trying to build keymap using the following components:
keycodes:   xfree86+aliases(qwerty)
types:      complete
compat:     complete+ledscroll(group_lock)
symbols:    pc/pc(pc104)+pc/us+pc/es:2+group(shifts_toggle)+level3
(ralt_switch)+ctrl(ctrl_aa)+compose(caps)
geometry:   pc(pc104)

Well now...

This worked, and did what I was expecting.  Holding both shift keys toggled 
between US and Spanish layouts clickity click.  That's pretty handy!  Beats 
having to go move the mouse to click on the little flag.

The effect was short-lived, though, and went away as soon as I switched back 
to a KMail window.  That was probably because of KDE getting in the way, I'd 
guess.  I'm back in my normal environment at this moment, and KDE's language 
switcher is probably involving itself in this.

I'll have to keep futzing around with this, now that you've proven to me that 
it can be worth the effort to pursue this.  Maybe I will crack open a man 
page.  :)

Thanks.

-- 
D. Michael 'Silvan' McIntyre  ----   Silvan <dmmcintyr@users.sourceforge.net>
Linux fanatic, and certified Geek;  registered Linux user #243621

Author of Rosegarden Companion http://rosegarden.sourceforge.net/tutorial/



Reply to: