So the problem is I have a standard QWERTY keyboard, but I want to be able to type specific danish characters. I have tried to follow the example of this post Using ctrl as modifier to produce swedish letters å, ä & ö on us keyboard while typing. Which I cannot make workfor some reason.
My current active keyboard layout is English US.
I have insterted the following below.
/usr/share/X11/xkb/symbols
partial alphanumeric_keys
xkb_symbols "danish" {
include "us(basic)"
name[Group1]= "English (US, with åæø)";
key <AD11> { [ bracketleft, braceleft, aring, Aring ] };
key <AC10> { [ semicolon, colon, odiaeresis, Odiaeresis ] };
key <AC11> { [ apostrophe, quotedbl, adiaeresis, Adiaeresis ] };
include "level3(ralt_switch)"
};
/usr/share/X11/xkb/rules/evdev.xml
I have added the variant as the first in the list under English (US) like below
<layoutList>
<layout>
<configItem>
<name>us</name>
<!-- Keyboard indicator for English layouts -->
<shortDescription>en</shortDescription>
<description>English (US)</description>
<languageList>
<iso639Id>eng</iso639Id>
</languageList>
</configItem>
<variantList>
<!-- Added danish mappings -->
<variant>
<configItem>
<name>danish</name>
<description>English (US, with åæø)</description>
</configItem>
</variant>
and restarting the keyboard service with systemctl restart keyboard-setup
.
I do not have any combinations the expected mappings does not work, I have tested that the Meta R/Alt R and the key presses is detected as expected.
My current selected language is displayed as English (United Sates)
(not English (US)
as the mapping might suggest it should?)
I cannot find the other variants
listed below under input sources like
<configItem>
<name>colemak</name>
<description>English (Colemak)</description>
</configItem>
</variant>
<variant>
<configItem>
<name>dvorak</name>
<description>English (Dvorak)</description>
</configItem>
</variant>
``` etc.
0 Answers