Skip to content

Latest commit

 

History

History
39 lines (31 loc) · 1.29 KB

File metadata and controls

39 lines (31 loc) · 1.29 KB

Karabiner-Elements

  1. 下载 Karabiner-Elements-12.0.0,https://pqrs.org/osx/karabiner/

  2. 这里 搜 Change caps_lock key,点 Import

  3. 删除多余规则,剩余一条:Post f19 key when pressed alone

f19

  1. 编辑 ~/.config/karabiner/karabiner.json 搜这个规则的关键词,把 caps_lock 缓存 right_command 改完之后就是这样
{
    "description": "Change right_command key to command+control+option+shift. (Post f19 key when pressed alone)",
    "manipulators": [
        {
            "from": {
                "key_code": "right_command",
                "modifiers": { "optional": ["any"] }
            },
            "to": [
                {
                    "key_code": "left_shift",
                    "modifiers": ["left_command", "left_control", "left_option"]
                }
            ],
            "to_if_alone": [{ "key_code": "f19" }],
            "type": "basic"
        }
    ]
}

这样我们就成功把 将 右cmd 配置为 f19 了。

!!! 如果改完发现键盘类型更改,按照下图将键盘类型更换为 ANSI 类型。

f19