雅趣 2017-12-25
G87 默认是 windows 模式,需要同时按下 Fn+Pause 键,切换到 mac 模式,此时 Pause 键的灯会常亮。如果要在 mac 模式下关闭 Pause 键的常亮灯,需要同时按下 Fn+Esc 键。(在 mac 模式下,再单击一下 Pause 键,就可以切换回 windows 模式)
Change caps_lock to control if pressed with other keys, to escape if pressed alone.
这个规则可以利用,它默认是按了 caps_lock 和其他组合键的时候就把 caps_lock 改为 control,仅仅单击 caps_lock 的时候就改为 esc 键,而我们的目标就是单击时是 caps_lock,组合的时候是 control第一个修改
1.路径 |--- ~/.config |--- karabiner |--- assets |--- complex_modifications |--- 1510932793.json 2.内容:找到这条规则,将最后的 escape 改为 caps_lock { "description": "Change caps_lock to control if pressed with other keys, to escape if pressed alone.", "manipulators": [ { "type": "basic", "from": { "key_code": "caps_lock", "modifiers": { "optional": [ "any" ] } }, "to": [ { "key_code": "left_control" } ], "to_if_alone": [ { "key_code": "caps_lock" } ] } ] }
第二个修改(主要生效的文件)
1.路径 |--- ~/.config |--- karabiner |--- karabiner.json 2.内容:找到这条规则,将最后的 escape 改为 caps_lock "rules": [ { "description": "Change caps_lock to control if pressed with other keys, to escape if pressed alone.", "manipulators": [ { "from": { "key_code": "caps_lock", "modifiers": { "optional": [ "any" ] } }, "to": [ { "key_code": "left_control" } ], "to_if_alone": [ { "key_code": "caps_lock" } ], "type": "basic" } ] } ]