为HHKB Professional 2映射R_Shift-ESC到波浪号
为HHKB Professional 2映射R_Shift-ESC到波浪号
Section titled “为HHKB Professional 2映射R_Shift-ESC到波浪号”对于HHKB Professional 2的键位不太适应:

因此在Mac下用Karabiner-Elements进行重新映射。但其中有一点,我先把R_Shift+ESC映射为波浪号(Tilde),这时就需要用到Karabiner-Elements中的Complex Modifications功能了——也就是自己写映射规则了。
将R_Shift+ESC到波浪号(Tilde)
Section titled “将R_Shift+ESC到波浪号(Tilde)”编写规则文件
Section titled “编写规则文件”我们先在~/.config/karabiner/assets/complex_modifications目录下新建一个JSON文件,文件名随便,内容大致如下:
{ "title": "remap r_shift+ecs to tilde rules", "rules": [ { "description": "remap r_shift+ecs to tilde", "manipulators": [ { "type": "basic", "from": { "key_code": "escape", "modifiers": { "mandatory": "right_shift", "optional": [ "any" ] } }, "to": [ { "key_code": "grave_accent_and_tilde", "modifiers": [ "left_shift" ] } ] } ] } ]}加载规则文件
Section titled “加载规则文件”打开Karabiner-Elements的配置,翻到Complex Modifications,点【Add rule】

在【Rule】板块中Enable之前的规则:

这样就生效了:

发布自己的规则
Section titled “发布自己的规则”在Karabiner-Elements complex_modifications rules提供了一些各位网友提供的映射规则,可以自己导入到Karabiner-Elements中。
另外一方面,你也可以将自己的规则发布到这个上面,只需Fork:KE-complex_modifications。