forked from kmonad/kmonad
-
Notifications
You must be signed in to change notification settings - Fork 0
/
dvorak_sane_zxcv.kbd
74 lines (63 loc) · 3.62 KB
/
dvorak_sane_zxcv.kbd
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
/* This example shows how to implement Dvorak, but still provide a solution for
left-hand only common shortcuts. There are various possible solutions: you could
implement an entire layer that is simply completely QWERTY, but every key
modified by Ctrl. However, that might be rough on your brain. The solution here
is to leave Ctrl unchanged, so all shortcuts are available via Ctrl and the
normal DVorak layout. In addition, though, we implement a layer with the basic
C-z, C-x, C-c, C-v shortcuts mapped to asdf, accessible through caps-lock.
Just to make that layer a bit sweeter we put a numpad under the right-hands
home-row, and add a shift to the left thumb, making it easy to type all numbers
and shifted-numbers without strechting your hands.
Just in case you still really need caps-lock (I never use it), we hide it at the
location for right-shift in the `sym` layer.
*/
// IO
INPUT = LINUX_DEVICE L64 /dev/input/by-id/usb-04d9_daskeyboard-event-kbd
OUTPUT = UINPUT_SINK
/* Copy this out to create a new layer
LAYER name
_ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _ _ _ _ _
*/
@sym = LT-sym // Use this to create a 'switch to sym button'
@smt = TH 300 esc LT-sym // Use this if you want that button to also double
// as an escape key when tapped
// Permanently switch to a different layer
@aqw = LA-qwerty // Add qwerty to the top of the stack
@rqw = LR-qwerty // Remove qwerty from the stack
// Source codes: standard ansi qwerty
SRC
esc f1 f2 f3 f4 f5 f6 f7 f8 f9 f10 f11 f12
grv 1 2 3 4 5 6 7 8 9 0 - = bspc
tab q w e r t y u i o p [ ] \
caps a s d f g h j k l ; ' ret
lsft z x c v b n m , . / rsft
lctl lmet lalt spc ralt rmet cmps rctl
// Dvorak base:
LAYER dvorak
esc f1 f2 f3 f4 f5 f6 f7 f8 f9 f10 f11 f12
grv 1 2 3 4 5 6 7 8 9 0 [ ] bspc
tab ' , . p y f g c r l / = \
@sym a o e u i d h t n s - ret
lsft ; q j k x b m w v z rsft
lctl lmet lalt spc ralt rmet cmps rctl
// Symbs, left-handed short-cuts, right hand numpad, thumb-shift for symbols
LAYER sym
_ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _ _ _ _ _ / * _ _ _ _
_ _ _ ë é _ _ 7 8 9 - _ _ _
_ C-z C-x C-c C-v _ _ 4 5 6 + _ _
_ _ _ _ _ _ _ 1 2 3 0 caps
_ _ lsft _ _ _ _ @aqw
// Qwerty layer, just in case:
LAYER qwerty
esc f1 f2 f3 f4 f5 f6 f7 f8 f9 f10 f11 f12
grv 1 2 3 4 5 6 7 8 9 0 - = bspc
tab q w e r t y u i o p [ ] \
caps a s d f g h j k l ; ' ret
lsft z x c v b n m , . / rsft
lctl lmet lalt spc ralt rmet cmps @rqw