V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
ilxv
V2EX  ›  macOS

键位修改软件 Karabiner-Elements 的.json 文件,哪里出错了呢?

  •  
  •   ilxv · 2022-11-29 14:21:54 +08:00 · 779 次点击
    这是一个创建于 485 天前的主题,其中的信息可能已经有所发展或是发生改变。

    创建了一个 rule ,想要把:Command + Option + Shift + =(等号键)

    映射为:Command + Control + H

    json 文件如下:

    {
      "title": "name",
      "rules": [
        {
          "description": "none",
          "manipulators": [
            {
              "type": "basic",
              "from": {
                "modifiers": {
                  "mandatory": [
                    "left_command",
                    "left_option",
                    "left_shift"
                  ],
                  "optional": [
                    "equal_sign"
                  ]
                }
              },
              "to": [
                {
                  "repeat": true,
                  "key_code": "h",
                  "modifiers": [
                    "left_control",
                    "left_command"
                  ]
                }
              ]
            }
          ]
        }
      ]
    }
    

    求教用过 Karabiner-Elements 的 v 友,哪里出了问题呢?

    第 1 条附言  ·  2022-11-29 16:57:50 +08:00
    解决了,去掉“left”就好了。
    2 条回复    2022-12-01 13:03:25 +08:00
    jheroy
        1
    jheroy  
       2022-11-30 09:23:33 +08:00
    karabiner 的原生配置太繁琐, 可以用 https://github.com/yqrashawn/GokuRakuJoudo 来管理配置, 语法相对简洁很多.
    ilxv
        2
    ilxv  
    OP
       2022-12-01 13:03:25 +08:00
    @jheroy get
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2918 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 15:16 · PVG 23:16 · LAX 08:16 · JFK 11:16
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.