Archived
1
0
Fork 0

Add dk_us keyboard layout.

This commit is contained in:
Casper V. Kristensen 2022-04-18 16:33:45 +02:00
parent 8010d37940
commit 26777042fe
4 changed files with 81 additions and 0 deletions

13
dk_us/README.md Normal file
View file

@ -0,0 +1,13 @@
# dk_us
US keyboard layout with Danish letters.
## Install
```
sudo patch --directory=/ --strip=0 < dk.patch
sudo patch --directory=/ --strip=0 < evdev.xml.patch
sudo patch --directory=/ --strip=0 < evdev.lst.patch
```
## Uninstall
Add the `--reverse` flag to the commands.

37
dk_us/dk.patch Normal file
View file

@ -0,0 +1,37 @@
--- /usr/share/X11/xkb/symbols/dk 2021-02-22 10:36:46.000000000 +0100
+++ /usr/share/X11/xkb/symbols/dk 2022-04-18 16:06:33.380498309 +0200
@@ -86,3 +86,34 @@
xkb_symbols "sun_type6" {
include "sun_vndr/dk(sun_type6)"
};
+
+
+partial alphanumeric_keys
+xkb_symbols "us" {
+
+ include "us(basic)"
+ name[Group1]= "Danish (US, with Danish letters)";
+
+ key <AE03> { [ NoSymbol, NoSymbol, sterling, NoSymbol ] };
+ key <AE07> { [ NoSymbol, NoSymbol, braceleft, NoSymbol ] };
+ key <AE08> { [ NoSymbol, NoSymbol, bracketleft, NoSymbol ] };
+ key <AE09> { [ NoSymbol, NoSymbol, bracketright, NoSymbol ] };
+ key <AE10> { [ NoSymbol, NoSymbol, braceright, NoSymbol ] };
+ key <AE12> { [ NoSymbol, NoSymbol, dead_acute, dead_grave ] };
+
+ key <AD09> { [ NoSymbol, NoSymbol, braceleft, NoSymbol ] };
+ key <AD10> { [ NoSymbol, NoSymbol, braceright, NoSymbol ] };
+ key <AD11> { [ aring, Aring, bracketleft, braceleft ] };
+ key <AD12> { [ apostrophe, quotedbl, bracketright, braceright ] };
+
+ key <AC10> { [ ae, AE, semicolon, colon ] };
+ key <AC11> { [ oslash, Ooblique, apostrophe, quotedbl ] };
+
+ key <AB08> { [ NoSymbol, semicolon, less, NoSymbol ] };
+ key <AB09> { [ NoSymbol, colon, greater, NoSymbol ] };
+
+ include "eurosign(5)"
+ include "eurosign(e)"
+
+ include "level3(ralt_switch)"
+};

10
dk_us/evdev.lst.patch Normal file
View file

@ -0,0 +1,10 @@
--- /usr/share/X11/xkb/rules/evdev.lst 2021-02-22 10:36:46.000000000 +0100
+++ /usr/share/X11/xkb/rules/evdev.lst 2022-04-14 15:02:53.779575609 +0200
@@ -442,6 +442,7 @@
mac dk: Danish (Macintosh)
mac_nodeadkeys dk: Danish (Macintosh, no dead keys)
dvorak dk: Danish (Dvorak)
+ us dk: Danish (US, with Danish letters)
sundeadkeys nl: Dutch (with Sun dead keys)
mac nl: Dutch (Macintosh)
std nl: Dutch (standard)

21
dk_us/evdev.xml.patch Normal file
View file

@ -0,0 +1,21 @@
--- /usr/share/X11/xkb/rules/evdev.xml 2021-02-22 10:36:46.000000000 +0100
+++ /usr/share/X11/xkb/rules/evdev.xml 2022-04-14 15:01:21.133744213 +0200
@@ -2952,12 +2952,18 @@
<variant>
<configItem>
<name>dvorak</name>
<description>Danish (Dvorak)</description>
</configItem>
</variant>
+ <variant>
+ <configItem>
+ <name>us</name>
+ <description>Danish (US, with Danish letters)</description>
+ </configItem>
+ </variant>
</variantList>
</layout>
<layout>
<configItem>
<name>nl</name>
<!-- Keyboard indicator for Dutch layouts -->