diff --git a/dk_us/README.md b/dk_us/README.md deleted file mode 100644 index d4cd0b6..0000000 --- a/dk_us/README.md +++ /dev/null @@ -1,13 +0,0 @@ -# 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. diff --git a/keyboard/README.md b/keyboard/README.md new file mode 100644 index 0000000..6929d26 --- /dev/null +++ b/keyboard/README.md @@ -0,0 +1,23 @@ +# Keyboard +US keyboard layout with Danish letters, and other additions. + +## Linux + +### Install +``` +sudo patch --directory=/ --strip=0 < {dk,evdev.xml,evdev.lst}.patch +``` + +### Uninstall +Add the `--reverse` flag to the command. + +### Testing +Set or reload keyboard layout: +``` +setxkbmap dk us +``` + + +## Windows +Install `setup.exe` and then go to `Advanced keyboard settings` and select +`Danish - US, with Danish letters`. diff --git a/dk_us/dk.patch b/keyboard/dk.patch similarity index 63% rename from dk_us/dk.patch rename to keyboard/dk.patch index c7e99be..4e9778a 100644 --- a/dk_us/dk.patch +++ b/keyboard/dk.patch @@ -1,6 +1,6 @@ --- /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 @@ +@@ -86,3 +86,39 @@ xkb_symbols "sun_type6" { include "sun_vndr/dk(sun_type6)" }; @@ -12,26 +12,31 @@ + include "us(basic)" + name[Group1]= "Danish (US, with Danish letters)"; + ++ key { [ NoSymbol, quotedbl, at, NoSymbol ] }; + key { [ NoSymbol, NoSymbol, sterling, NoSymbol ] }; ++ key { [ NoSymbol, NoSymbol, EuroSign, NoSymbol ] }; + key { [ NoSymbol, NoSymbol, braceleft, NoSymbol ] }; + key { [ NoSymbol, NoSymbol, bracketleft, NoSymbol ] }; + key { [ NoSymbol, NoSymbol, bracketright, NoSymbol ] }; + key { [ NoSymbol, NoSymbol, braceright, NoSymbol ] }; + key { [ NoSymbol, NoSymbol, dead_acute, dead_grave ] }; + -+ key { [ NoSymbol, NoSymbol, braceleft, NoSymbol ] }; -+ key { [ NoSymbol, NoSymbol, braceright, NoSymbol ] }; ++ key { [ NoSymbol, NoSymbol, braceleft, NoSymbol ] }; ++ key { [ NoSymbol, NoSymbol, braceright, NoSymbol ] }; + key { [ aring, Aring, bracketleft, braceleft ] }; + key { [ apostrophe, quotedbl, bracketright, braceright ] }; + ++ key { [ NoSymbol, NoSymbol, bracketleft, NoSymbol ] }; ++ key { [ NoSymbol, NoSymbol, bracketright, NoSymbol ] }; + key { [ ae, AE, semicolon, colon ] }; + key { [ oslash, Ooblique, apostrophe, quotedbl ] }; + ++ key { [ NoSymbol, NoSymbol, less, NoSymbol ] }; ++ key { [ NoSymbol, NoSymbol, greater, NoSymbol ] }; ++ key { [ NoSymbol, NoSymbol, parenleft, NoSymbol ] }; ++ key { [ NoSymbol, NoSymbol, parenright, NoSymbol ] }; + key { [ NoSymbol, semicolon, less, NoSymbol ] }; + key { [ NoSymbol, colon, greater, NoSymbol ] }; + -+ include "eurosign(5)" -+ include "eurosign(e)" -+ + include "level3(ralt_switch)" +}; diff --git a/dk_us/evdev.lst.patch b/keyboard/evdev.lst.patch similarity index 100% rename from dk_us/evdev.lst.patch rename to keyboard/evdev.lst.patch diff --git a/dk_us/evdev.xml.patch b/keyboard/evdev.xml.patch similarity index 100% rename from dk_us/evdev.xml.patch rename to keyboard/evdev.xml.patch