Browse Source

new file: dvorakd.sh

	new file:   install.sh
	new file:   readme.md
Serguei Chmod777 4 years ago
commit
f3d780b57b
3 changed files with 70 additions and 0 deletions
  1. 41
    0
      dvorakd.sh
  2. 18
    0
      install.sh
  3. 11
    0
      readme.md

+ 41
- 0
dvorakd.sh View File

@@ -0,0 +1,41 @@
1
+#!/bin/sh
2
+#
3
+# $OpenBSD: dvorakd,v 1.0 2016/10/04 serguei.chmod77
4
+# be cautious, it's under WTFPL licence !
5
+
6
+wsconsctl keyboard.map+=" keycode 54 = apostrophe quotedbl "
7
+wsconsctl keyboard.map+=" keycode 55 = comma less "
8
+wsconsctl keyboard.map+=" keycode 56 = period greater "
9
+wsconsctl keyboard.map+=" keycode 57 = p P "
10
+wsconsctl keyboard.map+=" keycode 58 = y Y "
11
+wsconsctl keyboard.map+=" keycode 59 = f F "
12
+wsconsctl keyboard.map+=" keycode 60 = g G"
13
+wsconsctl keyboard.map+=" keycode 61 = c C "
14
+wsconsctl keyboard.map+=" keycode 62 = r R "
15
+wsconsctl keyboard.map+=" keycode 63 = l L "
16
+wsconsctl keyboard.map+=" keycode 64 = slash question "
17
+wsconsctl keyboard.map+=" keycode 65 = equal plus "
18
+wsconsctl keyboard.map+=" keycode 77 = a A "
19
+wsconsctl keyboard.map+=" keycode 78 = o O "
20
+wsconsctl keyboard.map+=" keycode 79 = e E "
21
+wsconsctl keyboard.map+=" keycode 80 = u U "
22
+wsconsctl keyboard.map+=" keycode 81 = i I "
23
+wsconsctl keyboard.map+=" keycode 82 = d D "
24
+wsconsctl keyboard.map+=" keycode 83 = h H "
25
+wsconsctl keyboard.map+=" keycode 84 = t T "
26
+wsconsctl keyboard.map+=" keycode 85 = n N "
27
+wsconsctl keyboard.map+=" keycode 86 = s S "
28
+wsconsctl keyboard.map+=" keycode 87 = minus underscore "
29
+wsconsctl keyboard.map+=" keycode 100 = semicolon colon "
30
+wsconsctl keyboard.map+=" keycode 101 = q Q "
31
+wsconsctl keyboard.map+=" keycode 102 = j J "
32
+wsconsctl keyboard.map+=" keycode 103 = k K "
33
+wsconsctl keyboard.map+=" keycode 104 = x X "
34
+wsconsctl keyboard.map+=" keycode 105 = b B "
35
+wsconsctl keyboard.map+=" keycode 106 = m M "
36
+wsconsctl keyboard.map+=" keycode 107 = w W "
37
+wsconsctl keyboard.map+=" keycode 108 = v V"
38
+wsconsctl keyboard.map+=" keycode 109 = z Z"
39
+wsconsctl keyboard.map+=" keycode 40 = bracketleft braceleft "
40
+wsconsctl keyboard.map+=" keycode 41 = bracketright braceright "
41
+

+ 18
- 0
install.sh View File

@@ -0,0 +1,18 @@
1
+#!/bin/sh
2
+# Let's make US_Dvorak layout default at boot.
3
+# to be executed as root;
4
+
5
+file="/etc/rc.local"
6
+
7
+cp ./dvorakd.sh /usr/local/bin/
8
+
9
+if [ -f "$file" ]
10
+then
11
+	echo 'sh /usr/local/bin/dvorakd.sh' >> /etc/rc.local
12
+else
13
+	echo '#!/bin/sh' > /etc/rc.local
14
+	echo 'sh /usr/local/bin/dvorakd.sh' >> /etc/rc.local
15
+fi
16
+
17
+# reboot the machine to let changes happen,
18
+# or just ``$ sh ./dvorakd.sh'' to test it.

+ 11
- 0
readme.md View File

@@ -0,0 +1,11 @@
1
+```
2
+    The reason of such a tiny script came from an annoyance reckonning
3
+the lack of Dvorak layout while grepping it to # kbd -l, on my OpenBSD
4
+running on a Sparc64 machine (otherwise, this layout just exists among
5
+plenty others for standard arch)...
6
+So with valuable tips from #gcu squad people, I just avoid the
7
+hardiest way by re-mapping the QWERTY keyboard into US_Dvorak layout,
8
+using wsconsctl.
9
+
10
+	 I hope it could help some oddball *BSD users.
11
+```

Loading…
Cancel
Save