【问题标题】:How to remap key combinations in Karabiner Elements?如何重新映射 Karabiner Elements 中的组合键?
【发布时间】:2021-10-15 09:32:45
【问题描述】:

我目前已切换到 mac。但是我习惯了 Windows 中的键绑定。 我想以不同的方式映射键绑定,使它们类似于 Windows 键。

特别是我想更改以下键:

Option + 5 = [(在 mac 中)到:control + command + 7 = [(如在 Windows 中)

等等

如何在 Karabiner Elements 中做到这一点?

非常感谢!

【问题讨论】:

    标签: macos key karabiner


    【解决方案1】:

    如果我理解正确(= 您想在 Mac 键盘上按 Ctrl-Cmd-7),则可以这样做:

    {  "description": "Option-5 to Option-Cmd-7",
       "manipulators": [ {
                 "type": "basic",
                 "from": { "key_code": "7",
                             "modifiers": {
                               "mandatory": [ "left_control", "left_command" ]
                         }                },
                   "to": [
                         { "key_code": "5",
                             "modifiers": "left_option",
                           "repeat": false  }
                         ]
                       } ]
    }
    

    此规则/重新映射将在任何写作应用程序中生成一个“[”括号。
    您可以手动将其插入到您的 Karabiner.json 文件中,也可以将其作为复杂修改导入。

    【讨论】:

    • 我应该把这个 JSON 放在哪里?
    • 您的 karabiner.json 文件位于 . . . /Users/[你的名字]/.config/karabiner/karabiner.json 。 . .而“complex_modification”可以放入子文件夹“assets/complex_modifications”。 . .度过平静的一天,保持健康。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2015-08-10
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-10-10
    • 1970-01-01
    相关资源
    最近更新 更多