Thursday, May 2, 2024
 Popular · Latest · Hot · Upcoming
3
rated 0 times [  3] [ 0]  / answers: 1 / hits: 1598  / 3 Years ago, fri, june 25, 2021, 6:55:43

I am trying to create a new keyboard layout where two keys are inverted with each other.



This is what I have done:



Edit /usr/share/X11/xkb/symbols/se to add:



partial alphanumeric_keys
xkb_symbols "kinesis" {

// Modifies the basic Swedish layout to place aring correctly

include "latin(type2)"
include "se(basic)"

name[Group1]="Swedish (kinesis)";

key <BKSL> { [ aring, Aring ] };
key <AD11> { [apostrophe, asterisk, acute, multiply ] };

};


Edit /usr/share/X11/xkb/rules/evdev.lst to add to the section ! variant:



kinesis         se: Swedish (kinesis)


Restarted X.



This mentions something about rules/evdev.html, which I do not have (Ubuntu 14.04). It mentions also "adding the file", but I did not create any new file, only completed the existing symbols/se. I also tried to clear /var/lib/xkb from *.xkm, no difference.



How do I make this new variant of the layout to show up in my Settings->Text Entry?


More From » keyboard

 Answers
2

I think you have to add the entry also to the file evedev.xml, something on the line of:



    <variant>
<configItem>
<name>kinesis</name>
<description>My special kinesis</description>
</configItem>
</variant>


Near where the other variants for the se layouts are defined.



...and/or modify the correspondent base.xml, base.lst files.



I really do not know exactly how it works, thanks to the quite sparse documentation, but I managed to have my Spanish variant working (tested in Xubuntu but should work in all DE... modulo bugs).



And yes, removing *.xkm files is needed too. And yes, the .xml file should be generated by the .lst file, but I am unable to find how.


[#25128] Friday, June 25, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
warrdel

Total Points: 356
Total Questions: 103
Total Answers: 118

Location: Bangladesh
Member since Sat, Jan 23, 2021
3 Years ago
;