-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathxremap.yml
223 lines (223 loc) · 5.8 KB
/
xremap.yml
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
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
modmap:
- name: Change Caps Lock to Control
remap:
CapsLock: Ctrl_L
- name: Swap Left Alt and Left Super
remap:
KEY_LEFTALT: KEY_LEFTMETA
KEY_LEFTMETA: KEY_LEFTALT
device:
not: ['Apple Inc. Magic Keyboard with Numeric Keypad', 'Apple Inc. Magic Keyboard with Touch ID and Numeric Keypad', 'Apple Inc. Magic Keyboard']
- name: Swap Right Alt and Right Super
remap:
KEY_RIGHTALT: KEY_RIGHTMETA
KEY_RIGHTMETA: KEY_RIGHTALT
device:
only: ['Apple Inc. Magic Keyboard with Numeric Keypad', 'Apple Inc. Magic Keyboard with Touch ID and Numeric Keypad', 'Apple Inc. Magic Keyboard']
application:
not: [dev.zed.Zed, org.wezfurlong.wezterm, kitty]
- name: Assign Fn to Left Control
remap:
KEY_FN: Ctrl_L
device:
only: 'Apple Inc. Magic Keyboard'
keymap:
- name: Arrow keys
exact_match: true
remap:
# Mimic macOS
M-left: Ctrl-left
Ctrl-M-b: Ctrl-left
M-shift-left: Ctrl-Shift-left
M-Shift-b: Ctrl-Shift-Left
M-right: Ctrl-right
Ctrl-M-f: Ctrl-right
M-Shift-right: Ctrl-Shift-right
M-Shift-f: Ctrl-Shift-Right
M-up: Ctrl-Home
M-shift-up: Ctrl-Shift-Home
M-down: Ctrl-End
M-shift-down: Ctrl-Shift-End
M-backspace: Ctrl-Backspace
Super-left: Home
Super-shift-left: Shift-Home
Super-right: End
Super-shift-right: Shift-End
Super-backspace: [Shift-Home, delete]
Super-a: Ctrl-a
- name: All except Nyxt
exact_match: true
application:
not: [nyxt]
remap:
C-i: up
C-j: down
- name: Firefox
exact_match: true
application:
only: firefox
remap:
SUPER-l: Ctrl-l
SUPER-n: Ctrl-n
SUPER-t: Ctrl-t
SUPER-w: Ctrl-w
SUPER-minus: Ctrl-minus
SUPER-equal: Ctrl-equal
Alt_R-minus: Ctrl-minus
Alt_R-equal: Ctrl-equal
SUPER-leftbrace: Ctrl-leftbrace
SUPER-rightbrace: Ctrl-rightbrace
SUPER-1: M-1
SUPER-2: M-2
SUPER-3: M-3
SUPER-4: M-4
SUPER-5: M-5
SUPER-6: M-6
SUPER-7: M-7
SUPER-8: M-8
SUPER-9: M-9
SUPER-0: M-0
Alt_R-Shift-RightBrace: Ctrl-Tab
Alt_R-Shift-LeftBrace: Ctrl-Shift-Tab
- name: Chrome
exact_match: true
application:
only: chromium
remap:
Super-a: Ctrl-a
Super-d: Ctrl-d
Super-f: Ctrl-f
Super-g: Ctrl-g
SUPER-l: Ctrl-l
Super-n: Ctrl-n
SUPER-r: Ctrl-r
SUPER-t: Ctrl-t
Super-Shift-a: Ctrl-Shift-a
Super-Shift-c: Ctrl-Shift-c
Super-Shift-n: Ctrl-Shift-n
Super-Shift-o: Ctrl-Shift-o
Super-Shift-t: Ctrl-Shift-t
Super-Alt-i: Ctrl-Shift-i
SUPER-w: Ctrl-w
SUPER-minus: Ctrl-minus
SUPER-equal: Ctrl-equal
Alt_R-minus: Ctrl-minus
Alt_R-equal: Ctrl-equal
SUPER-leftbrace: Alt-Left
SUPER-rightbrace: Alt-Right
Alt_R-leftbrace: Alt-Left
Alt_R-rightbrace: Alt-Right
Alt_R-Shift-RightBrace: Ctrl-Tab
Alt_R-Shift-LeftBrace: Ctrl-Shift-Tab
SUPER-1: Ctrl-1
SUPER-2: Ctrl-2
SUPER-3: Ctrl-3
SUPER-4: Ctrl-4
SUPER-5: Ctrl-5
SUPER-6: Ctrl-6
SUPER-7: Ctrl-7
SUPER-8: Ctrl-8
SUPER-9: Ctrl-9
# Chrome on Wayland doesn't respect GTK Emacs bindings, so need to manually configure them
Ctrl-a: Home
Ctrl-b: Left
Ctrl-d: Delete
Ctrl-e: End
Ctrl-f: right
Ctrl-h: Backspace
Ctrl-k: [Shift-End, delete]
Alt-f: Ctrl-Right
Alt-b: Ctrl-Left
- name: Roam Research (AUR version)
exact_match: true
application:
only: Roam Research
remap:
CTRL-f: right # Override Ctrl-f for find
SUPER-u: Ctrl-u
- name: Roam Research (Chrome PWA)
exact_match: true
application:
only: chrome-lflgehidkjooeaeclhaadoefaleoeged-Default
remap:
Ctrl-a: Home
Ctrl-b: Left
Ctrl-d: Delete
Ctrl-e: End
Ctrl-f: Right
Ctrl-h: Backspace
Ctrl-k: [Shift-End, delete]
Ctrl-n: Down
Ctrl-u: [Shift-Home, delete]
Super-a: Ctrl-a
Alt-f: Ctrl-Right
Alt-b: Ctrl-Left
- name: Roam Viewer (Chrome PWA)
exact_match: true
application:
only: chrome-jcgpenhgafmhijpfmgmlcacapeaofcdf-Default
remap:
Ctrl-a: Home
Ctrl-d: Delete
Ctrl-e: End
Ctrl-f: Right
Ctrl-h: Backspace
Ctrl-k: [Shift-end, delete]
Ctrl-Alt-S: PageDown
Ctrl-Alt-W: PageUp
Alt-f: Ctrl-Right
Alt-b: Ctrl-Left
Super-a: Ctrl-a
Super-f: Ctrl-f
Super-g: Ctrl-g
Super-r: Ctrl-r
Super-Shift-g: Ctrl-Shift-g
SUPER-minus: Ctrl-minus
SUPER-equal: Ctrl-equal
Alt_R-minus: Ctrl-minus
Alt_R-equal: Ctrl-equal
- name: Zed Editor
exact_match: true
application:
only: dev.zed.Zed
remap:
Ctrl-a: Home
Ctrl-b: Left
Ctrl-e: End
Ctrl-f: Right
Ctrl-n: Down
Ctrl-p: Up
Super-c: Ctrl-c
Super-p: Ctrl-p
Super-s: Ctrl-s
Super-v: Ctrl-v
Super-w: Ctrl-w
Super-x: Ctrl-x
Super-z: Ctrl-z
Super-Shift-w: Ctrl-Shift-w
Super-Shift-p: Ctrl-Shift-p
- name: IntelliJ
exact_match: true
application:
only: jetbrains-idea
remap:
Super-e: Ctrl-e
Super-s: Ctrl-s
Super-w: Ctrl-4
Super-z: Ctrl-z
Super-Shift-o: Ctrl-Shift-n
- name: Non-web browser and non-terminal
exact_match: true
application:
not: [firefox, google-chrome, chromium, Vivaldi-stable, org.wezfurlong.wezterm, dev.zed.Zed, jetbrains-idea, kitty, com.mitchellh.ghostty]
remap:
SUPER-q: CTRL-q
SUPER-w: ALT-F4
- name: Non-terminal
exact_match: true
application:
not: [org.wezfurlong.wezterm, dev.zed.Zed]
remap:
SUPER-c: Ctrl-c
SUPER-v: Ctrl-Shift-v
Super-x: Ctrl-x