You are not logged in.

#1 2019-03-10 10:05:38

jensbc
Member
Registered: 2019-03-10
Posts: 1

Gnome - adding custom keyboard variant

I am trying to add my own custom keyboard variant to Gnome (using Wayland)

I have edited /usr/share/X11/xkb/symbols/dk and added the following:

partial alphanumeric_keys
xkb_symbols "dkus" {

include "dk"
name[Group1]= "Danish (US layout)";

key <BKSL> { [ onequarter, asterisk, backslash ] };
};

I have then updated usr/share/X11/xkb/rules/xorg.lst and /usr/share/X11/xkb/rules/xorg.xml to include the new variant, but that doesn't make the variant available in Gnome 

I have then tried to add the variant using:

gsettings set org.gnome.desktop.input-sources sources "[('xkb', 'dk+dkus'), ('xkb', 'eu'), ('xkb', 'dk')]"

but that doesn't change anything. What am I missing?

Offline

#2 2019-03-31 22:20:31

matj1
Member
Registered: 2017-10-29
Posts: 1

Re: Gnome - adding custom keyboard variant

If your environment's language is not English, change it to English, then set your layout and change your language back. That worked for me. I don't know if it works if you need to switch between different layouts, I use only one.
IMO keyboard descriptions in English are taken from base.xml, in other languages, they are taken from a different place because in base.xml they are only in English. xorg.xml is just a symlink to base.xml.

Edit: You need to edit evdev.xml. I edited both but thought evdev.xml was irrelevant.

Last edited by matj1 (2019-04-01 11:46:53)

Offline

Board footer

Powered by FluxBB