-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmacbook-us.kbd
184 lines (166 loc) · 9.84 KB
/
macbook-us.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
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
(defcfg
input (iokit-name "Apple Internal Keyboard / Trackpad")
output (kext)
)
;; free keys
;; A:
;; C:
;; M:
;; AC:
;; AM:
;; CM:
;; ACM:
(defalias
;; layers
navigation (layer-toggle navigation)
symbol (layer-toggle numberd)
number (layer-toggle numberd)
gitlayer (layer-toggle gitlayer)
;; code (layer-toggle coded)
;; home row mod
lctr (tap-hold 140 a lmet)
lsfr (tap-hold 140 r lctl)
lalt (tap-hold 140 s lalt)
lsft (tap-hold 140 t lsft)
rctr (tap-hold 140 o lmet)
ralt (tap-hold 140 i lctl)
rsfr (tap-hold 140 e lalt)
rsft (tap-hold 140 n lsft)
;; stuff
navi (tap-hold 140 spc @navigation)
;; del/symbol del
del/symbol (tap-hold 140 del @symbol)
slash/number (tap-hold 140 / @number)
;; bspc/sft (tap-hold 140 bspc @code)
bspc/sft bspc
return/apostrophe (tap-hold 140 ret ')
esc/b (tap-hold 140 esc bspc)
;; slash/sft (tap-hold 140 / lsft)
;; bspc/sft (tap-hold 140 bspc lsft)
;; emacs
e/m-x A-x ;; alt x
e/w/s C-A-M-` ;; workspace picker
e/ws1 C-A-M-1 ;; workspace 1
e/ws2 C-A-M-2 ;; workspace 2
e/ws3 C-A-M-3 ;; workspace 3
e/ws4 C-A-M-4 ;; workspace 4
e/ws5 C-A-M-5 ;; workspace 5
e/ws6 C-A-M-6 ;; workspace 6
e/ws7 C-A-M-7 ;; workspace 7
e/ws8 C-A-M-8 ;; workspace 8
e/ws9 C-A-M-9 ;; workspace 9
e/ws0 C-A-M-0 ;; workspace 10
e/w/p C-A-M-- ;; workspace previous
e/w/n C-A-M-= ;; workspace next
e/w/k C-A-M-esc ;; workspace kill
e/f/e C-A-M-f1 ;; file tree explorer
e/t/t C-A-M-f2 ;; terminal toggle
xf/ra (tap-hold 140 C-A-M-f3 @number) ;; avy go to timer
e/l/m C-A-M-f4 ;; lsp imenu
e/g/m (tap-hold 140 #(C-A-M-f5 P5 g P5 z) @gitlayer) ;; version control commit message
e/g/t C-A-M-f6 ;; version control timemachine
e/kil C-A-M-q ;; kill window or workspace
e/win C-A-M-w ;; switch window
e/f/s C-A-M-f ;; file save
e/git C-A-M-g ;; magit
e/l/s A-M-f18
e/l/h A-M-f19
e/muc C-A-M-z ;; multiple cursors
e/clk C-A-M-c ;; org clock
e/l/v C-A-M-v ;; lsp extend selection
e/buf C-A-M-b ;; list of buffers
e/b/k C-A-M-k ;; buffer kill
e/b/m C-A-M-m ;; buffer maximize
e/b/p C-A-M-, ;; buffer previous
e/b/n C-A-M-. ;; buffer next
ewiml C-A-M-left ;; window move left
ewimr C-A-M-right ;; window move right
ewimu C-A-M-up ;; window move up
ewimd C-A-M-down ;; window move down
ewidw C-M-left ;; window decrease width
ewiiw C-M-right ;; window increase width
ewiih C-M-up ;; window decrease height
ewidh C-M-down ;; window increase height
e/sod C-A-M-f13 ;; scroll other window down
e/sou C-A-M-f14 ;; scroll other window up
e/LaCh C-A-M-f15 ;; goto last change
;; e/c/r C-A-M-f2 ;; goto last change reversed
;; e/lsp C-A-M-f14 ;; lsp
;; e/l/r #(C-c P5 C-c P5 C-s P5 ret) ;; lsp run
;; e/l/t #(C-c P5 C-c P5 C-f P5 o ) ;; lsp test
gitlog #(C-A-M-f5 P5 g P5 z P5 l P5 l) ;; lsp test
e/w/n/git #(C-A-M-+ P5 C-A-M-f5 P5 F P5 u P5 g P5 z P5 l P5 l) ;; lsp test
e/w/p/git #(C-A-M-- P5 C-A-M-f5 P5 F P5 u P5 g P5 z P5 l P5 l) ;; lsp test
;; e/l/a #(esc P5 spc P5 c P5 l P5 a P5 a ) ;; lsp code actions
;; e/l/c #(C-c P5 C-c) ;; lsp run
;; e/l/d C-A-M-f17 ;; lsp show docs
;; e/l/u C-A-M-f18 ;; lsp show docs
e/b/s C-A-M-tab ;; burly bookmark frames
eLd|a A-M-f7 ;; lsp list errors
eLdef A-M-f8 ;; lsp go to definition
eLref A-M-f9 ;; lsp peek references
eLimp A-M-f10 ;; lsp peek implementations
eLdec A-M-f11 ;; lsp ui show doc
eLact A-M-f12 ;; lsp code actions
e/p/c C-A-M-f20 ;; cycle popup
e/p/t C-A-M-f16 ;; toggle popup
e/p/cv A-M-f16 ;; convert into/from popup from/into normal window
free2 C-A-M-f17
free3 C-A-M-f18
free4 C-A-M-f19
free6 A-M-f17
free9 A-M-f20
freeA C-A-M-a
free7 C-A-M-r
)
(defsrc
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 up
fn lctl lalt lmet spc rmet ralt left down rght
)
(deflayer colemak
esc brdn brup lp _ bldn blup @free2 @free3 @free4 mute vold volu
grv M-1 M-2 M-3 M-4 M-5 M-6 M-7 M-8 M-9 M-0 \_ + \
tab q w f p g @e/LaCh j l u y ; - =
@bspc/sft @lctr @lsfr @lalt @lsft d @e/sou h @rsft @rsfr @ralt @rctr @return/apostrophe
@del/symbol z x c v b @e/sod k m , . @slash/number @ewimu
fn @e/l/m @e/f/e @e/t/t @navi @xf/ra @e/p/t @ewiml @ewimd @ewimr
)
;; arrow keys, home/end, escape, and bunch of keybindings designated to emacs
(deflayer navigation
_ _ _ _ _ _ _ _ _ _ _ _ _
@e/w/s @e/ws1 @e/ws2 @e/ws3 @e/ws4 @e/ws5 @e/ws6 @e/ws7 @e/ws8 @e/ws9 @e/ws0 @e/w/p @e/w/n @e/w/k
@e/b/s @e/kil @e/win @e/f/s @freeA @e/git @e/g/m @eLd|a @eLdef @eLref @eLimp @eLdec @eLact @e/l/h
@esc/b _ _ _ _ @free2 @e/g/t home left down up rght end
@e/p/cv @e/muc @e/m-x @e/clk @e/l/v @e/buf @free3 @e/b/k @e/b/m @e/b/n @e/b/p @e/l/s @ewiih
fn @free4 @free6 @free7 _ @free9 @e/p/c @ewidw @ewidh @ewiiw
)
;; numbers and symbols
(deflayer numberd
_ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _ _ _ _ _ _ _ _ _ _ _
grv ! @ # $ % _ ^ { [ ] } _ _
grv ! @ # $ % _ ^ & * \( \) "
_ 1 2 3 4 5 _ 6 7 8 9 0 _
fn _ _ _ _ _ _ _ _ _
)
(deflayer gitlayer
_ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _ _ _ _ _ _ _ _ @e/w/p/git @e/w/n/git _
_ _ _ _ _ _ _ @gitlog _ _ _ _ _ _
_ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _ _ _ _ _ _ _
)
;; ;; symbols
;; (deflayer symbold
;; _ _ _ _ _ _ _ _ _ _ _ _ _
;; _ _ _ _ _ _ _ _ _ _ _ _ _ _
;; _ _ _ _ _ _ _ _ { [ ] } + =
;; grv ! @ # $ % _ ^ & * \( \) "
;; _ _ _ _ _ _ _ _ _ < > ? _
;; fn _ _ _ _ _ _ _ _ _
;; )