-
Notifications
You must be signed in to change notification settings - Fork 25
/
Copy path.colemak-DH-custom.json
141 lines (136 loc) · 6.34 KB
/
.colemak-DH-custom.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
// see ./README.org for explanation/logic
{
"fullName": "Colemak-DvbgHk Angle(z) Wide Custom",
"name": "colemak_dh_custom",
"shiftlevels": [ "None", "Shift", "AltGr", "Shift+AltGr", "Extend" ],
"singletonKeys": [
// dual-role: BackSpace
[ "CapsLock", "Extend" ],
// dual-role: tab
[ "Win_L", "Control" ],
// backup win
[ "Control_L", "Win" ],
// backup caps
[ "KP_Min", "CapsLock" ],
// dual-role: Escape
[ "Alt_L", "Shift" ],
// dual-role: Return
[ "Alt_R", "AltGr" ],
// dual-role: (
[ "PrintScreen", "Alt" ]
// have printscreen on nav layer
// [ "Control_R", "PrintScreen" ]
// hyper/super on thumb mouse buttons (with [ and { as dual role)
// hyper - global hotkeys (e.g. open programs)
// super - window management hotkeys
// see rldkbd
],
"keys": [
{ "pos": "~", "letters": [ "", "" ] },
// above not 30%; disable
// no longer using these as switch vt for now because
// - Accidentally use in some cases
// - Inconsistent with switch vt keybindings on tty
// { "pos": "1", "letters": [ "1", "!", "Switch_VT_1" ] },
// { "pos": "2", "letters": [ "2", "@", "Switch_VT_2" ] },
// { "pos": "3", "letters": [ "3", "#", "Switch_VT_3" ] },
// { "pos": "4", "letters": [ "4", "$", "Switch_VT_4" ] },
// { "pos": "5", "letters": [ "5", "%", "Switch_VT_5" ] },
// { "pos": "6", "letters": [ "6", "^", "Switch_VT_6" ] },
// { "pos": "7", "letters": [ "7", "&", "Switch_VT_7" ] },
// { "pos": "8", "letters": [ "8", "*", "Switch_VT_8" ] },
// { "pos": "9", "letters": [ "9", "(", "Switch_VT_9" ] },
// { "pos": "0", "letters": [ "0", ")", "Switch_VT_10" ] },
{ "pos": "1", "letters": [ "1", "!" ] },
{ "pos": "2", "letters": [ "2", "@" ] },
{ "pos": "3", "letters": [ "3", "#" ] },
{ "pos": "4", "letters": [ "4", "$" ] },
{ "pos": "5", "letters": [ "5", "%" ] },
{ "pos": "6", "letters": [ "6", "^" ] },
{ "pos": "7", "letters": [ "7", "&" ] },
{ "pos": "8", "letters": [ "8", "*" ] },
{ "pos": "9", "letters": [ "9", "(" ] },
{ "pos": "0", "letters": [ "0", ")" ] },
// not 30% but allow because password muscle memory
{ "pos": "-", "letters": [ "-", "_", "Switch_VT_11" ] },
{ "pos": "+", "letters": [ "=", "+", "Switch_VT_12" ] },
{ "pos": "Q", "letters": [ "q", "Q", "`", "~" ] },
// doesn't work with kitty; too aggressive when just want backspace word
// behavior (closes windows/tabs)
// { "pos": "W", "letters": [ "w", "W", "[", "]", "Control+w" ] },
{ "pos": "W", "letters": [ "w", "W", "=", "=", "Control+BackSpace" ] },
{ "pos": "E", "letters": [ "f", "F", "]", "]" ] },
{ "pos": "R", "letters": [ "p", "P", "_", "_", "PrintScreen" ] },
{ "pos": "T", "letters": [ "b", "B", "\\", "\\" ] },
{ "pos": "Y", "letters": [ "j", "J", "@", "@", "BrightnessDown" ] },
{ "pos": "U", "letters": [ "l", "L", "-", "-", "PageDown" ] },
{ "pos": "I", "letters": [ "u", "U", ")", ")", "Home" ] },
{ "pos": "O", "letters": [ "y", "Y", "}", "}", "End" ] },
{ "pos": "P", "letters": [ ";", ":", "!", "!", "PageUp" ] },
// not 30%; generally don't use except now for brightness
// need to explicitly keep [ bound for xcape to be able to output [ and {
{ "pos": "[", "letters": [ "[", "{" ] },
{ "pos": "]", "letters": [ "]", "}", "", "", "BrightnessUp" ] },
// won't use on normal keyboard or will need on jp keyboard
{ "pos": "\\", "letters": [ "'", "\"" ] },
{ "pos": "A", "letters": [ "a", "A", "1", "!" ] },
{ "pos": "S", "letters": [ "r", "R", "2", "@" ] },
{ "pos": "D", "letters": [ "s", "S", "3", "#" ] },
{ "pos": "F", "letters": [ "t", "T", "4", "$" ] },
{ "pos": "G", "letters": [ "g", "G", "|", "|" ] },
// media next/prev; for some reason can't get Previous to output, but
// using hkd to bind anyway, so it doesn't matter
{ "pos": "H", "letters": [ "k", "K", "&", "&", "Next", "Previous" ] },
{ "pos": "J", "letters": [ "n", "N", "7", "&", "Down" ] },
{ "pos": "K", "letters": [ "e", "E", "8", "*", "Up" ] },
{ "pos": "L", "letters": [ "i", "I", "9", "(", "Right" ] },
{ "pos": ";", "letters": [ "o", "O", "0", ")", "PlayPause" ] },
// not 30% but right pinky is stronger
{ "pos": "'", "letters": [ "'", "\"" ] },
{ "pos": "Z", "letters": [ "x", "X", "~", "~" ] },
{ "pos": "X", "letters": [ "c", "C", "#", "#" ] },
{ "pos": "C", "letters": [ "d", "D", "5", "%" ] },
{ "pos": "V", "letters": [ "v", "V", "^", "^" ] },
{ "pos": "B", "letters": [ "z", "Z" ] },
{ "pos": "N", "letters": [ "m", "M", "$", "$", "Mute" ] },
{ "pos": "M", "letters": [ "h", "H", "6", "^", "Left" ] },
{ "pos": ",", "letters": [ ",", "<", "*", "*", "VolumeDown" ] },
{ "pos": ".", "letters": [ ".", ">" , "+", "+", "VolumeUp" ] },
{ "pos": "/", "letters": [ "/", "?", "%", "%" ] }
// needed if modifier combinations not being detected by sxhkd
// { "pos": "A", "shiftlevels": [ "Win+AltGr" ], "letters": [ "Win+1" ] }
// ...
],
"mods": [
{ "name": "Wide",
"permutation": [
[ "Y", "U", "I", "O", "P", "[" ],
[ "H", "J", "K", "L", ";", "'", "Enter" ],
[ "N", "M", ",", ".", "/", "Shift_R" ]
]},
{
"name": "Wide-ja",
"permutation": [
[ "Y", "U", "I", "O", "P", "[" ],
[ "H", "J", "K", "L", ";", "'", "Enter" ],
[ "N", "M", ",", ".", "/", "Ro" ],
// use closestkeys to spacebar as thumb modifiers
[ "Control_L", "Win_L", "Alt_L", "Muhenkan" ],
[ "Henkan", "Alt_r" ]
// NOTE: klfc does not currently support, so I've manually
// changed ./xkb/keycodes/colemak_dh_custom:
// <HKTG> = 107; // Hiragana Katakana → PrintScreen
// <PRSC> = 101; // PrintScreen → Hiragana Katakana
// found with grep 101 /usr/share/X11/xkb/keycodes/evdev (found
// 101 from xev)
// [ "HKTG", "PrintScreen" ]
]
// { "name": "DH-angle-z",
// "permutation": [
// [ "C", "X", "Z", "B" ],
// [ "D", "B", "G" ],
// [ "H", "M" ]
// ]}
}
]
}