Skip to content

Instantly share code, notes, and snippets.

@thelastlin
Last active December 23, 2021 10:56
Show Gist options
  • Select an option

  • Save thelastlin/c1269683470531873ec89e95ce3d6198 to your computer and use it in GitHub Desktop.

Select an option

Save thelastlin/c1269683470531873ec89e95ce3d6198 to your computer and use it in GitHub Desktop.

Revisions

  1. thelastlin revised this gist Dec 23, 2021. 1 changed file with 38 additions and 3 deletions.
    41 changes: 38 additions & 3 deletions caps_ctrl.json
    Original file line number Diff line number Diff line change
    @@ -10,17 +10,29 @@
    "modifiers": {
    "mandatory": [
    "fn"
    ],
    "optional": [
    "any"
    ]
    },
    "simultaneous": [
    {}
    ],
    "key_code": "caps_lock"
    },
    "to": [
    {
    "key_code": "caps_lock"
    }
    ],
    "conditions": [
    {
    "type": "device_if",
    "identifiers": [
    {
    "vendor_id": 1452,
    "product_id": 833,
    "description": "Apple A2338 Internal Keyboard"
    }
    ]
    }
    ]
    }
    ]
    @@ -31,12 +43,35 @@
    {
    "type": "basic",
    "from": {
    "modifiers": {
    "optional": [
    "left_shift",
    "left_control",
    "left_option",
    "left_command",
    "right_shift",
    "right_option",
    "right_command"
    ]
    },
    "key_code": "caps_lock"
    },
    "to": [
    {
    "key_code": "right_control"
    }
    ],
    "conditions": [
    {
    "type": "device_if",
    "identifiers": [
    {
    "vendor_id": 1452,
    "product_id": 833,
    "description": "Apple A2338 Internal Keyboard"
    }
    ]
    }
    ]
    }
    ]
  2. thelastlin created this gist Dec 23, 2021.
    45 changes: 45 additions & 0 deletions caps_ctrl.json
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,45 @@
    {
    "title": "",
    "rules": [
    {
    "description": "Fn+Caps Lock as Caps Lock",
    "manipulators": [
    {
    "type": "basic",
    "from": {
    "modifiers": {
    "mandatory": [
    "fn"
    ]
    },
    "simultaneous": [
    {}
    ],
    "key_code": "caps_lock"
    },
    "to": [
    {
    "key_code": "caps_lock"
    }
    ]
    }
    ]
    },
    {
    "description": "Caps Lock as Right Control",
    "manipulators": [
    {
    "type": "basic",
    "from": {
    "key_code": "caps_lock"
    },
    "to": [
    {
    "key_code": "right_control"
    }
    ]
    }
    ]
    }
    ]
    }