-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathprivate.xml
147 lines (142 loc) · 6.39 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
<?xml version="1.0"?>
<root>
<!-- 设备自定义 -->
<!-- (for Varmilo VB660M)
Bluetooth Keyboard (Unknown)
Vendor ID:0x1345
Product ID:0x1005
Location ID:0x5160d9c
USB Device (?????)
Vendor ID:0x1345
Product ID:0x7103
Location ID:0x14200000
-->
<devicevendordef>
<vendorname>VARMILO</vendorname>
<vendorid>0x1345</vendorid>
</devicevendordef>
<deviceproductdef>
<productname>VB660M</productname>
<productid>0x1005</productid>
</deviceproductdef>
<deviceproductdef>
<productname>VB660M-USB</productname>
<productid>0x7103</productid>
</deviceproductdef>
<!-- 应用程序定义 -->
<appdef>
<appname>TweetBot</appname>
<equal>com.tapbots.TweetbotMac</equal>
</appdef>
<appdef>
<appname>IDEA</appname>
<equal>com.jetbrains.intellij</equal>
</appdef>
<replacementdef>
<replacementname>VIM_EMU_ONLY_APPS</replacementname>
<replacementvalue/>
<replacementname>VIM_EMU_IGNORE_APPS</replacementname>
<replacementvalue>IDEA</replacementvalue>
</replacementdef>
<!-- 我的触发器 -->
<item>
<name>自定义</name>
<item>
<name>TweetBot: [H ←], [L →], [空格或 I 查看媒体内容]</name>
<identifier>my.remap.TweetBot.hotKeys</identifier>
<block>
<only>TweetBot</only>
<!--
<uielementrole_not>AXTextArea, AXTextField, AXCheckBox, AXComboBox</uielementrole_not>
-->
<uielementrole_only>AXTable, AXWindow, AXScrollArea</uielementrole_only>
<autogen>__KeyToKey__ KeyCode::H, ModifierFlag::NONE, KeyCode::CURSOR_LEFT</autogen>
<autogen>__KeyToKey__ KeyCode::L, ModifierFlag::NONE, KeyCode::CURSOR_RIGHT</autogen>
<autogen>__KeyToKey__ KeyCode::F, MODIFIERFLAG_EITHER_LEFT_OR_RIGHT_CONTROL, KeyCode::PAGEDOWN</autogen>
<autogen>__KeyToKey__ KeyCode::B, MODIFIERFLAG_EITHER_LEFT_OR_RIGHT_CONTROL, KeyCode::PAGEUP</autogen>
<autogen>__KeyToKey__
KeyCode::I,
KeyCode::L, ModifierFlag::COMMAND_L, ModifierFlag::SHIFT_L
</autogen>
<autogen>__KeyToKey__
KeyCode::SPACE, ModifierFlag::NONE,
KeyCode::L, ModifierFlag::COMMAND_L, ModifierFlag::SHIFT_L
</autogen>
</block>
</item>
<item>
<name>官方中文输入法: 单击 Shift_L 触发 CapsLock - 中英文切换</name>
<inputsource_only>CHINESE_SIMPLIFIED</inputsource_only>
<identifier>my.remap.shiftL2shiftL_capslock.CHINESE_SIMPLIFIED</identifier>
<autogen>__KeyOverlaidModifier__ KeyCode::SHIFT_L, KeyCode::SHIFT_L, KeyCode::CAPSLOCK</autogen>
</item>
<item>
<name>连击 Control 触发 CapsLock</name>
<identifier>my.remap.DoubleControl_CapsLock</identifier>
<autogen>--DoublePressModifier--
KeyCode::CONTROL_L, KeyCode::CONTROL_L,
KeyCode::CAPSLOCK
</autogen>
</item>
<item>
<name>仿真 HHKB 使用 Option_R 触发功能键: 音量调节 / 方向键</name>
<appendix>● A ○ S ○ D ○ F ● ; ○ / ○ ' ○ [</appendix>
<appendix>● Volume Down ○ Up ○ Mute ○ Eject ● Arrow Left ○ Down ○ Right ○ Up</appendix>
<identifier>my.remap.optionR_FUNCTIONAL</identifier>
<autogen>__KeyToKey__ KeyCode::A, ModifierFlag::OPTION_R, ConsumerKeyCode::VOLUME_DOWN</autogen>
<autogen>__KeyToKey__ KeyCode::S, ModifierFlag::OPTION_R, ConsumerKeyCode::VOLUME_UP</autogen>
<autogen>__KeyToKey__ KeyCode::D, ModifierFlag::OPTION_R, ConsumerKeyCode::VOLUME_MUTE</autogen>
<autogen>__KeyToKey__ KeyCode::F, ModifierFlag::OPTION_R, ConsumerKeyCode::EJECT</autogen>
<autogen>__KeyToKey__ KeyCode::SEMICOLON, ModifierFlag::OPTION_R, KeyCode::CURSOR_LEFT</autogen>
<autogen>__KeyToKey__ KeyCode::QUOTE, ModifierFlag::OPTION_R, KeyCode::CURSOR_RIGHT</autogen>
<autogen>__KeyToKey__ KeyCode::BRACKET_LEFT, ModifierFlag::OPTION_R, KeyCode::CURSOR_UP</autogen>
<autogen>__KeyToKey__ KeyCode::SLASH, ModifierFlag::OPTION_R, KeyCode::CURSOR_DOWN</autogen>
</item>
<item>
<name>除非按下 CMD+Shift,交换 Backspace 和 Backslash '\' (VB660M 仿 HHKB)</name>
<identifier>my.remap.swap_backspace_baskslash</identifier>
<device_only>
DeviceVendor::VARMILO, DeviceProduct::VB660M, DeviceLocation::ANY,
DeviceVendor::VARMILO, DeviceProduct::VB660M-USB, DeviceLocation::ANY
</device_only>
<autogen>__KeyToKey__
KeyCode::DELETE, MODIFIERFLAG_EITHER_LEFT_OR_RIGHT_COMMAND | MODIFIERFLAG_EITHER_LEFT_OR_RIGHT_SHIFT,
KeyCode::DELETE, ModifierFlag::COMMAND_L | ModifierFlag::SHIFT_L
</autogen>
<autogen>__KeyToKey__
KeyCode::BACKSLASH, MODIFIERFLAG_EITHER_LEFT_OR_RIGHT_COMMAND | MODIFIERFLAG_EITHER_LEFT_OR_RIGHT_SHIFT,
KeyCode::BACKSLASH, ModifierFlag::COMMAND_L | ModifierFlag::SHIFT_L
</autogen>
<autogen>__KeyToKey__ KeyCode::DELETE, KeyCode::BACKSLASH</autogen>
<autogen>__KeyToKey__ KeyCode::BACKSLASH, KeyCode::DELETE</autogen>
</item>
<item>
<name>Command+Escape to Command+` (Switching Window)</nam≤e>
<identifier>my.remap.cmd_escape_to_switch_window</identifier>
<autogen>__KeyToKey__
KeyCode::ESCAPE, MODIFIERFLAG_EITHER_LEFT_OR_RIGHT_COMMAND | ModifierFlag::NONE,
KeyCode::BACKQUOTE, ModifierFlag::COMMAND_L
</autogen>
</item>
<item>
<name>Shift+Escape to Tilde (~, more happy for HHKB)</name>
<identifier>my.remap.shift_escape_to_tilde</identifier>
<autogen>__KeyToKey__
KeyCode::ESCAPE, MODIFIERFLAG_EITHER_LEFT_OR_RIGHT_SHIFT | ModifierFlag::NONE,
KeyCode::BACKQUOTE, ModifierFlag::SHIFT_L
</autogen>
</item>
<item>
<name>Switch Input Source</name>
<appendix>Use the right Option key to select the next input source</appendix>
<identifier>private.switch_input_source_with_right_option</identifier>
<autogen>--KeyToKey-- KeyCode::OPTION_R, KeyCode::SPACE, ModifierFlag::OPTION_L | ModifierFlag::COMMAND_L</autogen>
</item>
<item>
<name>Switch Input Source</name>
<appendix>Use the right Command key to select the next input source</appendix>
<identifier>private.switch_next_input_source_with_right_command</identifier>
<autogen>--KeyToKey-- KeyCode::COMMAND_R, KeyCode::SPACE, ModifierFlag::OPTION_L | ModifierFlag::COMMAND_L</autogen>
</item>
</item>
</root>