Mac上使用Karabiner针对app级别修改按键布局

Posted 小智_Zeki

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Mac上使用Karabiner针对app级别修改按键布局相关的知识,希望对你有一定的参考价值。

mac上使用远程桌面绑定按键,交换option和command

{
  "title": "Remote Desktop",
  "rules": [
    {
      "description": "Swap command and control",
      "manipulators": [
        {
          "type": "basic",
          "from": {
            "key_code": "left_option",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "to": [
            {
              "key_code": "left_command"
            }
          ],
          "conditions": [
            {
              "type": "frontmost_application_if",
              "bundle_identifiers": [
                "com\\\\.microsoft\\\\.rdc\\\\.mac"
              ]
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "left_command",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "to": [
            {
              "key_code": "left_option"
            }
          ],
          "conditions": [
            {
              "type": "frontmost_application_if",
              "bundle_identifiers": [
                "com\\\\.microsoft\\\\.rdc\\\\.mac"
              ]
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "right_option",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "to": [
            {
              "key_code": "right_command"
            }
          ],
          "conditions": [
            {
              "type": "frontmost_application_if",
              "bundle_identifiers": [
                "com\\\\.microsoft\\\\.rdc\\\\.mac"
              ]
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "right_command",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "to": [
            {
              "key_code": "right_option"
            }
          ],
          "conditions": [
            {
              "type": "frontmost_application_if",
              "bundle_identifiers": [
                "com\\\\.microsoft\\\\.rdc\\\\.mac"
              ]
            }
          ]
        }

      ]
    }
  ]
}

以上是关于Mac上使用Karabiner针对app级别修改按键布局的主要内容,如果未能解决你的问题,请参考以下文章

mac上优秀的键盘改键神器:Karabiner Elements完美支持m1芯片详细教程解析

抢修Mac铝制键盘利器Karabiner

在 mac sierra 上捕捉和更改键盘以模拟 neo2 键盘布局

mac 10.12 sierra 机械键盘+ratm可编程鼠标记录

快速输入有道云笔记markdown公式符号

Mac-book 外接键盘热键修改