Initial commit
This commit is contained in:
commit
3e333f3cac
18
README.MD
Normal file
18
README.MD
Normal file
@ -0,0 +1,18 @@
|
||||
# Dvorak-custom
|
||||
A custom dvorak keyboard layout for Linux (with Gnome 3) which uses the ```<>|``` key on German keyboards to type umlauts with the US Dvorak layout. Press ```<>|``` followed by o, u, or a to get the corresponding umlaut. To get ß, type shift + ```<>|```.
|
||||
|
||||
## Installation
|
||||
Apply all patches manually or run ```install.sh``` as root.
|
||||
|
||||
## Notes
|
||||
Add dvorak-us-de to /usr/share/X11/xkb/symbols/us
|
||||
|
||||
Add layout manually to:
|
||||
* /usr/share/X11/xkb/rules/base.xml
|
||||
* /usr/share/X11/xkb/rules/base.lst
|
||||
* /usr/share/X11/xkb/rules/evdev.lst
|
||||
* /usr/share/X11/xkb/rules/evdev.xml
|
||||
|
||||
Then reboot.
|
||||
|
||||
Not needed, but you can see the currently active layouts here: ```org.gnome.desktop.input-sources```
|
10
base.lst.patch
Normal file
10
base.lst.patch
Normal file
@ -0,0 +1,10 @@
|
||||
--- /usr/share/X11/xkb/rules/base.lst 2017-10-06 13:43:09.987258055 +0200
|
||||
+++ a/base.lst 2018-01-14 12:51:24.952012000 +0100
|
||||
@@ -300,6 +300,7 @@
|
||||
dvorak-l us: English (Dvorak, left-handed)
|
||||
dvorak-r us: English (Dvorak, right-handed)
|
||||
dvorak-classic us: English (classic Dvorak)
|
||||
+ dvorak-custom us: Engilsh (custom Dvorak)
|
||||
dvp us: English (programmer Dvorak)
|
||||
rus us: Russian (US, phonetic)
|
||||
mac us: English (Macintosh)
|
15
base.xml.patch
Normal file
15
base.xml.patch
Normal file
@ -0,0 +1,15 @@
|
||||
--- /usr/share/X11/xkb/rules/base.xml 2017-10-06 13:43:09.987258055 +0200
|
||||
+++ a/base.xml 2018-01-14 12:27:03.094969000 +0100
|
||||
@@ -1372,6 +1372,12 @@
|
||||
</variant>
|
||||
<variant>
|
||||
<configItem>
|
||||
+ <name>dvorak-custom</name>
|
||||
+ <description>English (custom Dvorak)</description>
|
||||
+ </configItem>
|
||||
+ </variant>
|
||||
+ <variant>
|
||||
+ <configItem>
|
||||
<name>dvorak-intl</name>
|
||||
<description>English (Dvorak, intl., with dead keys)</description>
|
||||
</configItem>
|
13
dvorak-us-de
Normal file
13
dvorak-us-de
Normal file
@ -0,0 +1,13 @@
|
||||
/////////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Generated keyboard layout file with the Keyboard Layout Editor.
|
||||
// For more about the software, see http://code.google.com/p/keyboardlayouteditor
|
||||
//
|
||||
|
||||
xkb_symbols "dvorak-custom"
|
||||
{
|
||||
name[Group1] = "English (custom Dvorak)";
|
||||
include "us(dvorak)"
|
||||
key <LSGT> { [ dead_diaeresis, ssharp ] }; // D¨ ß
|
||||
};
|
||||
|
10
evdev.lst.patch
Normal file
10
evdev.lst.patch
Normal file
@ -0,0 +1,10 @@
|
||||
--- /usr/share/X11/xkb/rules/evdev.lst
|
||||
+++ a/evdev.lst
|
||||
@@ -295,6 +295,7 @@
|
||||
alt-intl us: English (US, alt. intl.)
|
||||
colemak us: English (Colemak)
|
||||
dvorak us: English (Dvorak)
|
||||
+ dvorak-custom us: English (custom Dvorak)
|
||||
dvorak-intl us: English (Dvorak, intl., with dead keys)
|
||||
dvorak-alt-intl us: English (Dvorak, alt. intl.)
|
||||
dvorak-l us: English (Dvorak, left-handed)
|
15
evdev.xml.patch
Normal file
15
evdev.xml.patch
Normal file
@ -0,0 +1,15 @@
|
||||
--- /usr/share/X11/xkb/rules/evdev.xml
|
||||
+++ a/evdev.xml
|
||||
@@ -1370,6 +1370,12 @@
|
||||
<description>English (Dvorak)</description>
|
||||
</configItem>
|
||||
</variant>
|
||||
+ <variant>
|
||||
+ <configItem>
|
||||
+ <name>dvorak-custom</name>
|
||||
+ <description>English (custom Dvorak)</description>
|
||||
+ </configItem>
|
||||
+ </variant>
|
||||
<variant>
|
||||
<configItem>
|
||||
<name>dvorak-intl</name>
|
14
install.sh
Executable file
14
install.sh
Executable file
@ -0,0 +1,14 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [ "`whoami`" != "root" ]; then
|
||||
echo "Need to be root."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
(cd / && patch -p0) < us.patch
|
||||
(cd / && patch -p0) < base.lst.patch
|
||||
(cd / && patch -p0) < base.xml.patch
|
||||
(cd / && patch -p0) < evdev.lst.patch
|
||||
(cd / && patch -p0) < evdev.xml.patch
|
||||
|
||||
# If something bad happens, try reinstaling ```xkeyboard-config```
|
15
us.patch
Normal file
15
us.patch
Normal file
@ -0,0 +1,15 @@
|
||||
--- /usr/share/X11/xkb/symbols/us
|
||||
+++ a/us
|
||||
@@ -1787,3 +1787,12 @@
|
||||
xkb_symbols "sun_type6" {
|
||||
include "sun_vndr/us(sun_type6)"
|
||||
};
|
||||
+
|
||||
+partial alphanumeric_keys
|
||||
+xkb_symbols "dvorak-custom"
|
||||
+{
|
||||
+ name[Group1] = "English (custom Dvorak)";
|
||||
+ include "us(dvorak)"
|
||||
+ key <LSGT> { [ dead_diaeresis, ssharp ] }; // D¨ ß
|
||||
+};
|
||||
+
|
Loading…
Reference in New Issue
Block a user