need some help: caps_lock->left click, apple+caps_lock->right click

15 views
Skip to first unread message

Jonathan Coveney

unread,
Dec 18, 2022, 3:49:13 AM12/18/22
to Karabiner
a simple modification is easy to do caps_lock->left click, but I'm not quite sure how to allow a modifier

I came up with the following, but it didn't work (but at least you can see that I tried lol)

                            {
                                "description": "caps_lock=>left_click, command+caps_lock=>right click",
                                "from": {
                                    "key_code": "caps_lock",
                                    "modifiers": {
                                        "optional": [
                                            "right_command"
                                        ]
                                    }
                                },
                                "to": [
                                    {
                                        "pointing_button": "button2"
                                    }
                                ],
                                "to_if_alone": [
                                    {
                                        "pointing_button": "button1"
                                    }
                                ],
                                "type": "basic"
                            }
                        ]
                    }


I think this is close but I'm not sure. any help? :)

Evan Liu

unread,
May 20, 2023, 4:42:29 AM5/20/23
to Karabiner
Hi Jonathan, 

Can you give this a try: 

"manipulators": [
    {
      "type": "basic",
      "from": {
        "key_code": "caps_lock"
      },
      "to": [
        {
          "pointing_button": "button1"
        }
      ]
    },
    {
      "type": "basic",

      "from": {
        "key_code": "caps_lock",
        "modifiers": {
          "mandatory": [
            "command"
          ]
        }
      },
      "to": [
        {
          "pointing_button": "button2"
        }
      ]
    }
  ]

View/Edit it online with karabiner.ts here )
Reply all
Reply to author
Forward
0 new messages