I have a keyboard layout file that I want to install on 17.10, but I fail to make it work.
How is it supposed to be done?
So far I have tried
- Guessing how to do it based on existing files in
/usr/share/X11/xkb/symbols/and the appearance of/usr/share/X11/xkb/rules/evdev.xml - Guessing what a "variant" is, how to add it, what fields need to be updated, where the contents of this symbols file should be placed
- Guessing that placing it with a unique name directly in
/symbols/means I have to add it as a<layout>inevdev.xml. Still no idea whether that is true, nor which field -- if any -- is supposed to correspond to the file name - Guessing that placing it inside an existing file in
/symbols/means I have to add it as a "variant". No idea whether that is true
It would help if there was some way to avoid the guessing. I don't need a crash-course in the architecture, just a non-ambiguous way to make the keyboard layout...
- show up in the keyboard layout settings dialog, and...
- produce the correct input
So far the farthest I've come is #1 -- but don't ask me how, because I don't know which part did it.
Update
Exactly this has been done
The contents of the symbols file that I linked to is in
/usr/share/X11/xkb/symbols/svorak-a5The following block has been inserted into
/usr/share/X11/xkb/rules/evdev.xmlright before the pre-existing element sequence<layout><configItem><name>se:<layout> <configItem> <name>svorak-a5</name><shortDescription>sva5</shortDescription> <description>Svorak A5</description> <languageList> <iso639Id>swe</iso639Id> </languageList></configItem> </layout>
/var/lib/xkbcontains no.xkms.
symbolsfile (or part of one) for use withxkb; for users with X11 and tools likesetxkbmapit can go almost anywhere, but for Wayland or systemwide it will need to be installed in/usr/share/X11/xkb/symbols. see https://askubuntu.com/a/969232/669043 – quixotic Nov 15 '17 at 20:06/usr/share/X11/xkb/symbols/svorak-a5. I'm afraid I don't know how to adapt your answer there to proceed with subsequent steps here. – Andreas Nov 15 '17 at 20:28