Adding a custom keyboard layout

Johnny Rosenberg gurus.knugum at gmail.com
Tue Mar 1 16:54:09 UTC 2011


Den 2011-03-01 00:14:17 skrev Dotan Cohen <dotancohen at gmail.com>:

> Hi all, I have written a custom keyboard layout that I'm trying to
> install in Kubuntu 10.10. This is the layout:
> http://dotancohen.com/eng/keyboard_layout.html
>
> I have added the layout as /usr/share/X11/xkb/symbols/dotan and made
> these changes:
>
> In /usr/share/X11/xkb/rules/base.lst I added this:
> ! layout
>   dotan           Dotan
> Of course, the !layout line was already there, I did not touch it.
>
> In /usr/share/X11/xkb/rules/base.xml I added this:
>
>   <layoutList>
>
> <layout>
>   <configItem>
>     <name>dotan</name>
>     <shortDescription>Dotan</shortDescription>
>     <description>Dotans Layout</description>
>   </configItem>
> </layout>
>
> Of course, the <layoutList> line was already there, I did not touch it.
>
> However, after a rebook I do not see the new layout in KDE's
> configuration for these things. What did I miss or do wrong? Thanks!
>
>
>

Doesn't Kubuntu use evdev, like Ubuntu does?
In that case, you edited the wrong files.
Take a look at evdev.lst and evdev.xml. Those are the file to edit.

I use my own layout (”Sweden - Johnny Rosenberg”) all the time, so I know  
it's possible to do this… For example, I replaced all the numbers on the  
upper row with other characters (why have numbers at two places…?), I can  
type arrow symbols with my arrow keys and still use them as arrow keys and  
so on and so on.

-- 
Kind regards

Johnny Rosenberg




More information about the ubuntu-users mailing list