Advanced keyboard layout with .xkb file?

Please post suggestions for improvement of Cinnamon here
https://github.com/linuxmint/Cinnamon
Post Reply
Johannes33
Level 1
Level 1
Posts: 9
Joined: Wed Sep 19, 2018 6:37 am

Advanced keyboard layout with .xkb file?

Post by Johannes33 » Wed Sep 19, 2018 8:01 am

Hi,
I'm on linux mint 19 cinnamon.
I would like to add a keyboard layout and be able to switch between it and the others in the bundled app keyboard (cinnamon-settings keyboard) like it was any other bundled keyboard layout.

I have a file named arensito-kinesis.xkb and a filename arensito-kinesis.xmodmap to use as a template.
I looked a little and googled. It seems that cinnamon do not use the .xkb file system. but a system with directories in /usr/share/X11/xkb and files in sub-directories of these. So in total I think I need 4 files in 4 different directories to be edited.
Now I wonder if there is a program or app that can aoutogenerate these 4 files to fit this new system with the files I have as a template?
If not. Do any of you have any link to some instructions on how to do it?
Also but not as important. Does anyone know how to build the geometry file of a keyboard? I would like to build a geometry for a kinesis contoured keyboard so i can visually see where the keys are after implementing the new keyboard layout.

Thanks
/Johannes

magnus7
Level 3
Level 3
Posts: 138
Joined: Sat Jan 30, 2016 8:46 pm

Re: Advanced keyboard layout with .xkb file?

Post by magnus7 » Thu Sep 20, 2018 7:20 am

The simplest way:
Create "symbols" file from your templates.
Open /usr/share/X11/xkb/symbols as administrator.
Chose a file of keyboard layout you don't use and replace its contents with your file.
Run this command in terminal and restart the computer:

Code: Select all

sudo dpkg-reconfigure xkb-data
You will find your new layout under the name of layout you replaced.

If you want a layout in a new file under new name, you have to add information about your layout to this configuration file, including language code:/usr/share/X11/xkb/rules/evdev.xml

Johannes33
Level 1
Level 1
Posts: 9
Joined: Wed Sep 19, 2018 6:37 am

Re: Advanced keyboard layout with .xkb file?

Post by Johannes33 » Sun Sep 30, 2018 4:50 pm

Thanks a lot for the help!
I have not had time to try it but it sounds good.
Perhaps if I do not understand everything you could give me a push in the right direction when I get around fixing my keyboard layout? :)

/Johannes

magnus7
Level 3
Level 3
Posts: 138
Joined: Sat Jan 30, 2016 8:46 pm

Re: Advanced keyboard layout with .xkb file?

Post by magnus7 » Mon Oct 01, 2018 6:51 am

You're welcome. I'll do my best.

Post Reply

Return to “Cinnamon”