macos – How to make ‘F’ and ‘J’ left and right ctrl respectively, using Karabiner-Elements?

Spread the love


Advertisement

So, I appear to be getting RSI in my left hand due to the frequent pressing of the left-control key. I have already remapped caps-lock to left-control, which did help things for a while.

Advertisements

I would like to use the keys under the index fingers for control keys, however I cannot seem to get it working properly. It does work, but often when typing quickly, it often registers consecutive key presses as a ctrl+char. I don't think I understand the timing parameters properly, so they might be suboptimal.

Here is my config:

One of my rules:

{
  "description": "F is left-control if pressed with other keys",
  "manipulators": [
    {
      "from": {
        "key_code": "f",
        "modifiers": {
          "optional": [
            "any"
          ]
        }
      },
      "to": [
        {
          "key_code": "left_control"
        }
      ],
      "to_if_alone": [
        {
          "key_code": "f"
        }
      ],
      "type": "basic"
    }
  ]
},

And my timing configuration:

"parameters": {
  "basic.simultaneous_threshold_milliseconds": 50,
  "basic.to_delayed_action_delay_milliseconds": 500,
  "basic.to_if_alone_timeout_milliseconds": 1000,
  "basic.to_if_held_down_threshold_milliseconds": 300,
  "mouse_motion_to_scroll.speed": 100
},

NB: One additional thing to note is that I actually use a colemak layout so in truth the index fingers are above the T and N keys. I have left that out because I think it may not be relevant (my config above does kind of work), and the question above is probably more relevant to more people.

Author: Subham

Leave a Reply

Your email address will not be published. Required fields are marked *