kdm multiple keyboard layouts

zoolook nbensa at gmail.com
Thu Mar 28 02:01:18 GMT 2013


First, I didn't noticed gmail was sending HTML. Please excuse me. This
one _should_ be plain text.

On Wed, Mar 27, 2013 at 7:48 PM, Bogus Zaba <bogsub at bogzab.plus.com> wrote:
>
> On 03/27/2013 09:16 PM, zoolook wrote:
>
>> On Wed, Mar 27, 2013 at 5:11 PM, Bogus Zaba <bogsub at bogzab.plus.com <mailto:bogsub at bogzab.plus.com>> wrote:
>>
>>     On 03/27/2013 10:18 AM, zoolook wrote:
>>
>>         Hello,
>>
>>         First, is there a kdm-users dedicated mailing list?
>>
>>         Now my question.
>>
>>         I'm learning Dvorak keyboard layout but I share this computer
>>         with my wife. She doesn't like the layout so I need kdm to
>>         default to latam layout and have dvorak as a option (either a
>>         keyboard shortcut or a menu option) so I don't have to
>>         remember two passwords.
>>
>>         Is this possible?
>>
>>         Thanks!!
>>
>>         Norberto
>>
>>
>>         ___________________________________________________
>>         This message is from the kde mailing list.
>>         Account management: https://mail.kde.org/mailman/listinfo/kde.
>>         Archives: http://lists.kde.org/.
>>         More info: http://www.kde.org/faq.html.
>>
>>     System settings > Input Devices > Keyboard > Layouts. The settings
>>     form there allows you to add various keyboard layouts. Once these
>>     have been activated an icon in the notifications area of your
>>     panel tells you which keyboard layout is active at the time. I use
>>     this to switch between UK, UK-international and Polisk keyboard
>>     layouts. Just click the icon and you cycle through them, once you
>>     have set them up in System Settings.
>>
>>
>>
>> I want kd_M_ (kde's display manager) to be mutiple-keyboard-layout aware :-)  I want to be able to switch between 2 keyboard layouts in kdM.
>>
>> Or is there something I'm missing? I see no icon to switch layouts in kdM.
>>
>>
>> Thanks!
>>
>>
> Sorry, I misread your original post.


It's ok. Don't worry.


>
> I think you are right there is no kdm option to change keyboard layouts



[some rant, but it's meant to be funny, keep reading 'cos I "fixed"]

We are in the year two thousand thirteen. It is the xxi century. We
are already on the second decade of the xxi century, and I already
have a flying car!!! (...ok, I'm lying a little bit here... it doesn't
fly, but it's new and shinny! :-) ), and ...



> There may be options to achieve what you want by logging into your system in a plain text console rather than using a display manager login. You might then be able to set locale / keyboard map in the console and afterwards start your gui with "startx"?
>


... and you want me to start kde using startx like in the '90 :-/

I'm going to my bedroom to cry.


I remember being able to configure xfree86 to hot-switch between
keyboard layouts, but xorg has no x{whatever}.conf in /etc/X11.

In *ubuntu (and from what I've been reading, every distro) the
xorg.conf files are split into /usr/share/X11/xorg.conf.d/

To configure multiple keyboard layouts, I copied
/usr/share/X11/xorg.conf.d/10-evdev.conf to
/etc/X11/xorg.conf.d/10-evdev.conf (if the directory doesn't exist,
create it).

Then I modified the section where "matchiskeyboard" is:

Section "InputClass"
        Identifier "evdev keyboard catchall"
        MatchIsKeyboard "on"
        MatchDevicePath "/dev/input/event*"
        Driver "evdev"
### added this:
        Option "XkbModel" "pc105"
        Option "XkbLayout" "latam,us(dvp)"
        Option "XKbOptions" "grp:alt_shift_toggle"
###
EndSection

As you can see, I've configured alt+shift as the hot-key to toggle the
layouts. It works in kdm (the display manager). Latam is the default.
I can press alt+shift to swicth to dvorak (programmer layout).

It is not perfect (missing layout label for exaple) but it works for me.

Adding this feature to kdm would be nice, since no display manager
seems to have this (2013 Guys. 2013. Windows 2000 supported this in
1999)

Now I have a little funny behaviour with middle-click to paste. I
don't know if it is caused by the above modification to the config or
something else (kde 4.10.1 still has this habit of deleting the
configuration file and replacing it with the defaults so maybe it is
just klipper doing its (default) thing :-/) . It is not important.
I'll fix it a few more minutes.


Thanks for reading!
___________________________________________________
This message is from the kde mailing list.
Account management:  https://mail.kde.org/mailman/listinfo/kde.
Archives: http://lists.kde.org/.
More info: http://www.kde.org/faq.html.




More information about the kde mailing list