V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
ilxv
V2EX  ›  macOS

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

  •  
  •   ilxv · Nov 29, 2022 · 1648 views
    This topic created in 1246 days ago, the information mentioned may be changed or developed.

    创建了一个 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 友,哪里出了问题呢?

    Supplement 1  ·  Nov 29, 2022
    解决了,去掉“left”就好了。
    2 replies    2022-12-01 13:03:25 +08:00
    jheroy
        1
    jheroy  
       Nov 30, 2022
    karabiner 的原生配置太繁琐, 可以用 https://github.com/yqrashawn/GokuRakuJoudo 来管理配置, 语法相对简洁很多.
    ilxv
        2
    ilxv  
    OP
       Dec 1, 2022
    @jheroy get
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5589 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 51ms · UTC 08:40 · PVG 16:40 · LAX 01:40 · JFK 04:40
    ♥ Do have faith in what you're doing.