-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.kbd
156 lines (136 loc) · 6.8 KB
/
config.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
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
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
(defcfg
input (device-file "/dev/input/by-path/platform-i8042-serio-0-event-kbd")
output (uinput-sink "KMonad kbd"))
(defsrc
esc f1 f2 f3 f4 f5 f6 f7 f8 f9 f10 f11 f12 pause prnt ins del
` 1 2 3 4 5 6 7 8 9 0 - = bspc home
tab q w e r t y u i o p [ ] ret pgup
caps a s d f g h j k l ; ' \ pgdn
lsft z x c v b n m , . / rsft up end
lctl lmet lalt spc ralt cmps rctl left down rght
)
#| ------------------------ TEMPLATE ---------------------
(deflayer somename
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _ _ _ _ _ _ _
)
|#
(defalias
sym (layer-toggle symbols)
tnum (tap-hold-next-release 300 tab (layer-toggle numbers))
funE (tap-hold-next-release 300 esc (layer-toggle navigation))
navA (tap-hold-next-release 300 a (layer-toggle navigation))
winS (tap-hold-next-release 300 s (layer-toggle window))
cF (tap-hold-next-release 300 f lctl)
sD (tap-hold-next-release 300 d lsft)
aW (tap-hold-next-release 300 w lalt)
aS (tap-hold-next-release 300 s lalt)
gA (tap-hold-next-release 300 a lmet)
cJ (tap-hold-next-release 300 j lctl)
sK (tap-hold-next-release 300 k lsft)
aL (tap-hold-next-release 300 l lalt)
;; bonus layer toggles
nW (tap-hold-next-release 300 w (layer-toggle numbers))
nR (tap-hold-next-release 300 r (layer-toggle numbers))
sE (tap-hold-next-release 300 e (layer-toggle symbols))
nO (tap-hold-next-release 300 o (layer-toggle numbers))
sI (tap-hold-next-release 300 i (layer-toggle symbols))
spcsym (tap-hold-next-release 300 spc (layer-toggle symbols))
s2G (tap-hold-next-release 300 g (layer-toggle tmux))
ccC (tap-hold 500 c (around lctl c))
ccV (tap-hold 500 v (around lctl v))
ccX (tap-hold 500 x (around lctl x))
ccZ (tap-hold 500 z (around lctl z))
;; window management
w1 (around lmet 1)
w2 (around lmet 2)
w3 (around lmet 3)
w4 (around lmet 4)
w5 (around lmet 5)
w6 (around lmet 6)
w7 (around lmet 7)
w8 (around lmet 8)
w9 (around lmet 9)
;; navigation
bw (around lctl left)
fw (around lctl rght)
ctab (around lctl tab)
cstb (around lctl (around lsft tab))
fun (tap-hold-next-release 300 (around lctl spc) (layer-toggle navigation) )
W1 (around lmet 1)
W2 (around lmet 2)
W3 (around lmet 3)
W4 (around lmet 4)
W5 (around lmet 5)
W6 (around lmet 6)
W7 (around lmet 7)
W8 (around lmet 8)
W9 (around lmet 9)
w_l (around lmet left)
w_r (around lmet right)
w_u (around lmet up)
w_d (around lmet down)
;; tmux
cspc (around lctl b)
to (tap-macro @cspc o)
tn (tap-macro @cspc n)
tp (tap-macro @cspc p)
tc (tap-macro @cspc c)
tz (tap-macro @cspc z)
tsv (tap-macro @cspc -)
tsh (tap-macro @cspc |)
ty (tap-macro @cspc y)
txy (tap-macro @cspc x P10 y)
)
(deflayer base
esc f1 f2 f3 f4 f5 f6 f7 f8 f9 f10 f11 f12 pause prnt ins del
` _ _ _ _ _ _ _ _ _ _ / = _ home
@tnum q @aW e @nR t y u i o p [ ] _ pgup
@funE @navA @winS @sD @cF @s2G h @cJ @sK @aL ' ' \ pgdn
_ @ccZ @ccX @ccC @ccV b n m , . - _ up end
ret lmet bspc @spcsym ret cmps rctl left down rght
)
(deflayer symbols
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _
_ ! @ # $ % & { \( \) } _ _ _ _
caps = + * ^ | ~ / : ? ` _ _ _
_ _ _ < > _ ; \_ [ ] \\ _ _ _
_ _ del _ _ _ _ _ _ _
)
(deflayer tmux
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _ _ _ _ _ _ @ty _ _ _ _ _
_ _ _ _ _ _ @tp @to _ @tn @tz _ _ _
_ _ _ _ _ _ _ _ _ @tsh @tsv _ _ _
_ _ @txy _ @tc _ _ _ _ _
)
(deflayer numbers
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _ _ _ _ 7 8 9 _ _ _ _ _
_ lmet lalt lsft lctl _ _ 4 5 6 0 _ _ _
_ _ _ _ _ _ _ 1 2 3 _ _ _ _
_ _ _ 0 _ _ _ _ _ _
)
(deflayer navigation
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ @fw _ _ _ pgup _ _ up _ _ _ _
_ _ lalt lsft lctl _ left down up rght ret _ _ _
_ _ _ _ _ @bw down pgdn _ _ _ _ _ _
_ _ _ spc _ _ _ _ _ _
)
(deflayer window
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _ _ _ _ @w7 @w8 @w9 _ _ _ _ _
_ _ _ _ _ _ @cstb @w1 @w2 @w3 @ctab _ _ _
_ _ _ _ _ _ _ @w4 @w5 @w6 _ _ _ _
_ _ _ _ _ _ _ _ _ _
)