Created
August 2, 2017 01:36
-
-
Save ufo22940268/0becc84f27bf1502f0c962c1503770f8 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "title": "ALT <=> CMD in External keyboard", | |
| "rules": [ | |
| { | |
| "description": "Swap option and command in External keyboard", | |
| "manipulators": [ | |
| { | |
| "conditions": [ | |
| { | |
| "type": "device_unless", | |
| "identifiers": [ | |
| { | |
| "vendor_id": 1452, | |
| "product_id": 632 | |
| } | |
| ] | |
| } | |
| ], | |
| "type": "basic", | |
| "from": { | |
| "key_code": "left_option", | |
| "modifiers": { | |
| "optional": [ | |
| "any" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "left_command" | |
| } | |
| ] | |
| }, | |
| { | |
| "conditions": [ | |
| { | |
| "type": "device_unless", | |
| "identifiers": [ | |
| { | |
| "vendor_id": 1452, | |
| "product_id": 632 | |
| } | |
| ] | |
| } | |
| ], | |
| "type": "basic", | |
| "from": { | |
| "key_code": "left_command", | |
| "modifiers": { | |
| "optional": [ | |
| "any" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "left_option" | |
| } | |
| ] | |
| }, | |
| { | |
| "conditions": [ | |
| { | |
| "type": "device_unless", | |
| "identifiers": [ | |
| { | |
| "vendor_id": 1452, | |
| "product_id": 632 | |
| } | |
| ] | |
| } | |
| ], | |
| "type": "basic", | |
| "from": { | |
| "key_code": "right_option", | |
| "modifiers": { | |
| "optional": [ | |
| "any" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "right_command" | |
| } | |
| ] | |
| }, | |
| { | |
| "conditions": [ | |
| { | |
| "type": "device_unless", | |
| "identifiers": [ | |
| { | |
| "vendor_id": 1452, | |
| "product_id": 632 | |
| } | |
| ] | |
| } | |
| ], | |
| "type": "basic", | |
| "from": { | |
| "key_code": "right_command", | |
| "modifiers": { | |
| "optional": [ | |
| "any" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "right_option" | |
| } | |
| ] | |
| } | |
| ] | |
| } | |
| ] | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Better remove
product_idfrom the conditions to target Apple keyboards generically.