-
Notifications
You must be signed in to change notification settings - Fork 8
/
private.xml
290 lines (256 loc) · 12.7 KB
/
private.xml
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
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
<?xml version="1.0"?>
<root>
<devicevendordef>
<vendorname>Microsoft</vendorname>
<vendorid>0x045e</vendorid>
</devicevendordef>
<deviceproductdef>
<productname>Sculpt</productname>
<productid>0x07a5</productid>
</deviceproductdef>
<deviceproductdef>
<productname>SculptMouse</productname>
<productid>0x07a5</productid>
</deviceproductdef>
<appdef>
<appname>Firefox</appname>
<equal>org.mozilla.firefox</equal>
</appdef>
<appdef>
<appname>Chrome</appname>
<equal>com.google.Chrome</equal>
</appdef>
<appdef>
<appname>Safari</appname>
<equal>com.apple.Safari</equal>
</appdef>
<!--<appdef>
<appname>Vim</appname>
<equal>org.vim.MacVim</equal>
</appdef>-->
<appdef>
<appname>Vim</appname>
<equal>com.qvacua.VimR</equal>
</appdef>
<appdef>
<appname>Marked2</appname>
<equal>com.brettterpstra.marked2</equal>
</appdef>
<appdef>
<appname>WhatsApp</appname>
<equal>WhatsApp</equal>
</appdef>
<appdef>
<appname>Word</appname>
<equal>com.microsoft.Word</equal>
</appdef>
<appdef>
<appname>Outlook</appname>
<equal>com.microsoft.Outlook</equal>
</appdef>
<appdef>
<appname>OneNote</appname>
<equal>com.microsoft.onenote.mac</equal>
</appdef>
<appdef>
<appname>Octave</appname>
<equal>org.pqrs.unknownapp.ocateve-gui</equal>
</appdef>
<appdef>
<appname>Preview</appname>
<equal>com.apple.Preview</equal>
</appdef>
<appdef>
<appname>Skim</appname>
<equal>net.sourceforge.skim-app.skim</equal>
</appdef>
<vkopenurldef>
<name>KeyCode::VK_OPEN_URL_APP_Chrome</name>
<url type="file">/Applications/Google Chrome.app</url>
</vkopenurldef>
<vkopenurldef>
<name>KeyCode::VK_OPEN_URL_APP_Firefox</name>
<url type="file">/Applications/Firefox.app</url>
</vkopenurldef>
<vkopenurldef>
<name>KeyCode::VK_OPEN_URL_APP_MacVim</name>
<url type="file">/Applications/MacVim.app</url>
</vkopenurldef>
<vkopenurldef>
<name>KeyCode::VK_OPEN_URL_APP_VimR</name>
<url type="file">/Applications/VimR.app</url>
</vkopenurldef>
<vkopenurldef>
<name>KeyCode::VK_OPEN_URL_APP_Terminal</name>
<url type="file">/Applications/Utilities/Terminal.app</url>
</vkopenurldef>
<vkopenurldef>
<name>KeyCode::VK_OPEN_URL_APP_iTerm</name>
<url type="file">/Applications/iTerm.app</url>
</vkopenurldef>
<vkopenurldef>
<name>KeyCode::VK_OPEN_URL_APP_WhatsApp</name>
<url type="file">/Applications/WhatsApp.app</url>
</vkopenurldef>
<vkopenurldef>
<name>KeyCode::VK_OPEN_URL_APP_Microsoft_Word</name>
<url type="file">/Applications/Microsoft Word.app</url>
</vkopenurldef>
<vkopenurldef>
<name>KeyCode::VK_OPEN_URL_APP_Microsoft_Outlook</name>
<url type="file">/Applications/Microsoft Outlook.app</url>
</vkopenurldef>
<vkopenurldef>
<name>KeyCode::VK_OPEN_URL_APP_Safari</name>
<url type="file">/Applications/Safari.app</url>
</vkopenurldef>
<vkopenurldef>
<name>KeyCode::VK_OPEN_URL_APP_Slack</name>
<url type="file">/Applications/Slack.app</url>
</vkopenurldef>
<vkopenurldef>
<name>KeyCode::VK_OPEN_URL_APP_Octave</name>
<url type="file">/Applications/Octave.app</url>
</vkopenurldef>
<vkopenurldef>
<name>KeyCode::VK_OPEN_URL_APP_Mail</name>
<url type="file">/Applications/Mail.app</url>
</vkopenurldef>
<vkopenurldef>
<name>KeyCode::VK_OPEN_URL_APP_Preview</name>
<url type="file">/Applications/Preview.app</url>
</vkopenurldef>
<vkopenurldef>
<name>KeyCode::VK_OPEN_URL_APP_Skim</name>
<url type="file">/Applications/Skim.app</url>
</vkopenurldef>
<vkopenurldef>
<name>KeyCode::VK_OPEN_URL_APP_VLC</name>
<url type="file">/Applications/VLC.app</url>
</vkopenurldef>
<vkopenurldef>
<name>KeyCode::VK_OPEN_URL_APP_AndroidStudio</name>
<url type="file">/Applications/Android Studio.app</url>
</vkopenurldef>
<vkopenurldef>
<name>KeyCode::VK_OPEN_URL_SHELL_activate_virtualbox_vm</name>
<url type="shell">
<![CDATA[ /Users/dwyatt/bin/activate_vbox ]]>
</url>
</vkopenurldef>
<item>
<name>Switcher</name>
<item>
<name>Application Switcher</name>
<identifier vk_config="true">notsave.derek.switcher_mode</identifier>
<autogen>__ShowStatusMessage__ Switcher Mode</autogen>
<block>
<autogen>__KeyToKey__ KeyCode::W, KeyCode::VK_OPEN_URL_APP_WhatsApp, KeyCode::VK_LOCK_ALL_FORCE_OFF, KeyCode::VK_CONFIG_FORCE_OFF_notsave_derek_switcher_mode</autogen>
<!--<autogen>__KeyToKey__ KeyCode::V, KeyCode::VK_OPEN_URL_APP_MacVim, KeyCode::VK_LOCK_ALL_FORCE_OFF, KeyCode::VK_CONFIG_FORCE_OFF_notsave_derek_switcher_mode</autogen>-->
<autogen>__KeyToKey__ KeyCode::V, KeyCode::VK_OPEN_URL_APP_VimR, KeyCode::VK_LOCK_ALL_FORCE_OFF, KeyCode::VK_CONFIG_FORCE_OFF_notsave_derek_switcher_mode</autogen>
<autogen>__KeyToKey__ KeyCode::T, KeyCode::VK_OPEN_URL_APP_iTerm, KeyCode::VK_LOCK_ALL_FORCE_OFF, KeyCode::VK_CONFIG_FORCE_OFF_notsave_derek_switcher_mode</autogen>
<autogen>__KeyToKey__ KeyCode::F, KeyCode::VK_OPEN_URL_APP_Firefox, KeyCode::VK_LOCK_ALL_FORCE_OFF, KeyCode::VK_CONFIG_FORCE_OFF_notsave_derek_switcher_mode</autogen>
<autogen>__KeyToKey__ KeyCode::M, KeyCode::VK_OPEN_URL_APP_Mail, KeyCode::VK_LOCK_ALL_FORCE_OFF, KeyCode::VK_CONFIG_FORCE_OFF_notsave_derek_switcher_mode</autogen>
<autogen>__KeyToKey__ KeyCode::C, KeyCode::VK_OPEN_URL_APP_Chrome, KeyCode::VK_LOCK_ALL_FORCE_OFF, KeyCode::VK_CONFIG_FORCE_OFF_notsave_derek_switcher_mode</autogen>
<autogen>__KeyToKey__ KeyCode::R, KeyCode::VK_OPEN_URL_APP_Safari, KeyCode::VK_LOCK_ALL_FORCE_OFF, KeyCode::VK_CONFIG_FORCE_OFF_notsave_derek_switcher_mode</autogen>
<autogen>__KeyToKey__ KeyCode::S, KeyCode::VK_OPEN_URL_APP_Slack, KeyCode::VK_LOCK_ALL_FORCE_OFF, KeyCode::VK_CONFIG_FORCE_OFF_notsave_derek_switcher_mode</autogen>
<autogen>__KeyToKey__ KeyCode::O, KeyCode::VK_OPEN_URL_APP_Microsoft_Outlook, KeyCode::VK_LOCK_ALL_FORCE_OFF, KeyCode::VK_CONFIG_FORCE_OFF_notsave_derek_switcher_mode</autogen>
<autogen>__KeyToKey__ KeyCode::P, KeyCode::VK_OPEN_URL_APP_Preview, KeyCode::VK_LOCK_ALL_FORCE_OFF, KeyCode::VK_CONFIG_FORCE_OFF_notsave_derek_switcher_mode</autogen>
<autogen>__KeyToKey__ KeyCode::K, KeyCode::VK_OPEN_URL_APP_Skim, KeyCode::VK_LOCK_ALL_FORCE_OFF, KeyCode::VK_CONFIG_FORCE_OFF_notsave_derek_switcher_mode</autogen>
<autogen>__KeyToKey__ KeyCode::B, KeyCode::VK_OPEN_URL_SHELL_activate_virtualbox_vm, KeyCode::VK_LOCK_ALL_FORCE_OFF, KeyCode::VK_CONFIG_FORCE_OFF_notsave_derek_switcher_mode</autogen>
<autogen>__KeyToKey__ KeyCode::L, KeyCode::VK_OPEN_URL_APP_VLC, KeyCode::VK_LOCK_ALL_FORCE_OFF, KeyCode::VK_CONFIG_FORCE_OFF_notsave_derek_switcher_mode</autogen>
</block>
</item>
<item>
<name>Control+Space to turn on Switcher Mode</name>
<identifier>derek.switcher_mode_turnon</identifier>
<config_not>notsave.derek.switcher_mode</config_not>
<autogen>__KeyToKey__ KeyCode::SPACE, VK_CONTROL, KeyCode::VK_CONFIG_FORCE_ON_notsave_derek_switcher_mode</autogen>
</item>
<item>
<name>Control+Space to turn off Switcher Mode</name>
<identifier>derek.switcher_mode_turnoff</identifier>
<autogen>__KeyToKey__ KeyCode::SPACE, VK_CONTROL, KeyCode::VK_LOCK_ALL_FORCE_OFF, KeyCode::VK_CONFIG_FORCE_OFF_notsave_derek_switcher_mode</autogen>
</item>
</item>
<item>
<name>PrtScn (FN 13) to Shift+Ctrl+Eject</name>
<identifier>sculpt.prtscr_shift_ctrl_eject</identifier>
<device_only>DeviceVendor::Microsoft, DeviceProduct::Sculpt</device_only>
<autogen>
__KeyToKey__ KeyCode::F13, ModifierFlag::NONE, ConsumerKeyCode::EJECT, ModifierFlag::SHIFT_L | ModifierFlag::CONTROL_L
</autogen>
</item>
<item>
<name>Remap Sculpt Windows to Option</name>
<appendix>This maps the Microsoft Sculpt's Windows Key to Option.</appendix>
<identifier>sculpt.windows_to_option</identifier>
<device_only>DeviceVendor::Microsoft, DeviceProduct::Sculpt</device_only>
<autogen>__KeyToKey__ KeyCode::COMMAND_L, KeyCode::OPTION_L</autogen>
<autogen>__KeyToKey__ KeyCode::COMMAND_R, KeyCode::OPTION_R</autogen>
</item>
<item>
<name>Remap Sculpt Alt to Command</name>
<appendix>This maps the Microsoft Sculpt's ALT Key to Command.</appendix>
<identifier>sculpt.alt_to_command</identifier>
<device_only>DeviceVendor::Microsoft, DeviceProduct::Sculpt</device_only>
<autogen>__KeyToKey__ KeyCode::OPTION_L, KeyCode::COMMAND_L</autogen>
<autogen>__KeyToKey__ KeyCode::OPTION_R, KeyCode::COMMAND_R</autogen>
</item>
<item>
<name>Basic Emacs mode movements in Microsoft Word and Microsoft Outlook</name>
<identifier>com.microsoft.mouse.sculpt_comfort.msapps_remaps</identifier>
<only>Word, Outlook, OneNote</only>
<autogen>__KeyToKey__ KeyCode::H, VK_CONTROL, KeyCode::DELETE, ModifierFlag::NONE</autogen>
<autogen>__KeyToKey__ KeyCode::F, VK_CONTROL, KeyCode::CURSOR_RIGHT, ModifierFlag::NONE</autogen>
<autogen>__KeyToKey__ KeyCode::B, VK_CONTROL, KeyCode::CURSOR_LEFT, ModifierFlag::NONE</autogen>
<autogen>__KeyToKey__ KeyCode::F, ModifierFlag::COMMAND_R, KeyCode::CURSOR_RIGHT, ModifierFlag::OPTION_L</autogen>
<autogen>__KeyToKey__ KeyCode::B, ModifierFlag::COMMAND_R, KeyCode::CURSOR_LEFT, ModifierFlag::OPTION_L</autogen>
<autogen>__KeyToKey__ KeyCode::P, VK_CONTROL, KeyCode::CURSOR_UP, ModifierFlag::NONE</autogen>
<autogen>__KeyToKey__ KeyCode::N, VK_CONTROL, KeyCode::CURSOR_DOWN, ModifierFlag::NONE</autogen>
<autogen>__KeyToKey__ KeyCode::A, VK_CONTROL, KeyCode::HOME, ModifierFlag::NONE</autogen>
<autogen>__KeyToKey__ KeyCode::E, VK_CONTROL, KeyCode::END, ModifierFlag::NONE</autogen>
</item>
<item>
<name>Map Control J, K, U and D to up, down, page up and page down in various apps</name>
<identifier>com.microsoft.mouse.sculpt_comfort.updown_remaps</identifier>
<only>Marked2, Skim, Preview</only>
<autogen>__KeyToKey__ KeyCode::K, VK_CONTROL, KeyCode::CURSOR_UP, ModifierFlag::NONE</autogen>
<autogen>__KeyToKey__ KeyCode::J, VK_CONTROL, KeyCode::CURSOR_DOWN, ModifierFlag::NONE</autogen>
<autogen>__KeyToKey__ KeyCode::D, VK_CONTROL, KeyCode::PAGEDOWN, ModifierFlag::NONE</autogen>
<autogen>__KeyToKey__ KeyCode::U, VK_CONTROL, KeyCode::PAGEUP, ModifierFlag::NONE</autogen>
</item>
<item>
<name>Map some of the cmd keys to ctrl keys in Safari, Firefox and Chrome</name>
<identifier>com.microsoft.mouse.sculpt_comfort.browser_key_remaps</identifier>
<only>Safari, Firefox, Chrome</only>
<autogen>__KeyToKey__ KeyCode::W, VK_CONTROL, KeyCode::W, VK_COMMAND</autogen>
<autogen>__KeyToKey__ KeyCode::T, VK_CONTROL, KeyCode::T, VK_COMMAND</autogen>
<autogen>__KeyToKey__ KeyCode::R, VK_CONTROL, KeyCode::R, VK_COMMAND</autogen>
<autogen>__KeyToKey__ KeyCode::L, VK_CONTROL, KeyCode::L, VK_COMMAND</autogen>
<autogen>__KeyToKey__ KeyCode::K, VK_CONTROL, KeyCode::CURSOR_UP, ModifierFlag::NONE</autogen>
<autogen>__KeyToKey__ KeyCode::J, VK_CONTROL, KeyCode::CURSOR_DOWN, ModifierFlag::NONE</autogen>
<autogen>__KeyToKey__ KeyCode::BRACKET_RIGHT, VK_CONTROL, KeyCode::TAB, VK_CONTROL</autogen>
<autogen>__KeyToKey__ KeyCode::BRACKET_LEFT, VK_CONTROL, KeyCode::TAB, VK_CONTROL | VK_SHIFT</autogen>
<autogen>__KeyToKey__ KeyCode::D, VK_CONTROL, KeyCode::PAGEDOWN, ModifierFlag::NONE</autogen>
<autogen>__KeyToKey__ KeyCode::U, VK_CONTROL, KeyCode::PAGEUP, ModifierFlag::NONE</autogen>
</item>
<item>
<name>Tilt right to back (cmd+[) and left to forward (cmd+]) in Safari, Firefox and Chrome</name>
<identifier>com.microsoft.mouse.sculpt_comfort.browser_tilts</identifier>
<device_only>DeviceVendor::Microsoft,DeviceProduct::SculptMouse</device_only>
<only>Safari, Firefox, Chrome</only>
<autogen>__ScrollWheelToKey__ ScrollWheel::RIGHT, ModifierFlag::NONE, KeyCode::BRACKET_LEFT, ModifierFlag::COMMAND_L</autogen>
<autogen>__ScrollWheelToKey__ ScrollWheel::LEFT, ModifierFlag::NONE, KeyCode::BRACKET_RIGHT, ModifierFlag::COMMAND_L</autogen>
</item>
<item>
<name>Windows Button to LaunchPad (Microsoft Sculpt Comfort Mouse)</name>
<identifier>com.microsoft.mouse.sculpt_comfort.win_button_launchpad</identifier>
<autogen>__KeyToKey__ KeyCode::OPTION_R, KeyCode::LAUNCHPAD</autogen>
</item>
<item>
<name>Windows Button to Expose (Microsoft Sculpt Comfort Mouse)</name>
<identifier>com.microsoft.mouse.sculpt_comfort.win_button_expose</identifier>
<autogen>__KeyToKey__ KeyCode::OPTION_R, KeyCode::EXPOSE_ALL</autogen>
</item>
</root>