Skip to content

Instantly share code, notes, and snippets.

@Epigene
Created October 26, 2019 10:31
Show Gist options
  • Save Epigene/e42553ea720f1448ae5352883868a0e7 to your computer and use it in GitHub Desktop.
Save Epigene/e42553ea720f1448ae5352883868a0e7 to your computer and use it in GitHub Desktop.

Karabiner Elements v12.7.0 custom rule setup

  1. Open ~/.config/karabiner/assets/complex_modifications
  2. Make a new *.json rule file
  3. Put the rule json in there.
  4. Reload Karabiner and add the rule.

Control + D to Show Desktop

{
  "title": "Show desktop",
  "rules": [
    {
      "description": "Show desktop",
      "manipulators": [
        {
          "type": "basic",
          "from": {
            "key_code": "d",
            "modifiers": {
              "mandatory": ["command"]
            }
          },
          "to": [
            {
              "key_code": "f11",
              "modifiers": [
                "fn"
              ]
            }
          ]
        }
      ]
    }
  ]
}

Grave to delete

{
  "title": "Grave to delete",
  "rules": [
    {
      "description": "Grave to delete",
      "manipulators": [
        {
          "type": "basic",
          "from": {
            "key_code": "non_us_backslash"
          },
          "to": [
            {
              "key_code": "delete_or_backspace",
              "modifiers": [
                "fn"
              ]
            }
          ]
        }
      ]
    }
  ]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment