Created
November 6, 2017 17:29
-
-
Save mike-anderson/95ad6e05996418463c5e62959daf9667 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": "Leopold FC660 Capslock to FN w/ function keys and escape", | |
"rules": [ | |
{ | |
"description": "Map capslock to fn", | |
"manipulators": [ | |
{ | |
"conditions": [{ "type": "device_if", "identifiers": [{ | |
"product_id": 257, "vendor_id": 1204 | |
}]}], | |
"type": "basic", | |
"from": { "key_code": "caps_lock" }, | |
"to": [{ "key_code": "fn" }] | |
} | |
] | |
}, | |
{ | |
"description": "Map fn + 1-0,-= to F1-12", | |
"manipulators": [ | |
{ | |
"conditions": [{ "type": "device_if", "identifiers": [{ | |
"product_id": 257, "vendor_id": 1204 | |
}]}], | |
"type": "basic", | |
"from": { "key_code": "1", "modifiers": { "mandatory": ["fn"] }}, | |
"to": [{ "key_code": "f1" }] | |
}, | |
{ | |
"conditions": [{ "type": "device_if", "identifiers": [{ | |
"product_id": 257, "vendor_id": 1204 | |
}]}], | |
"type": "basic", | |
"from": { "key_code": "2", "modifiers": { "mandatory": ["fn"] }}, | |
"to": [{ "key_code": "f2" }] | |
}, | |
{ | |
"conditions": [{ "type": "device_if", "identifiers": [{ | |
"product_id": 257, "vendor_id": 1204 | |
}]}], | |
"type": "basic", | |
"from": { "key_code": "3", "modifiers": { "mandatory": ["fn"] }}, | |
"to": [{ "key_code": "f3" }] | |
}, | |
{ | |
"conditions": [{ "type": "device_if", "identifiers": [{ | |
"product_id": 257, "vendor_id": 1204 | |
}]}], | |
"type": "basic", | |
"from": { "key_code": "4", "modifiers": { "mandatory": ["fn"] }}, | |
"to": [{ "key_code": "f4" }] | |
}, | |
{ | |
"conditions": [{ "type": "device_if", "identifiers": [{ | |
"product_id": 257, "vendor_id": 1204 | |
}]}], | |
"type": "basic", | |
"from": { "key_code": "5", "modifiers": { "mandatory": ["fn"] }}, | |
"to": [{ "key_code": "f5" }] | |
}, | |
{ | |
"conditions": [{ "type": "device_if", "identifiers": [{ | |
"product_id": 257, "vendor_id": 1204 | |
}]}], | |
"type": "basic", | |
"from": { "key_code": "6", "modifiers": { "mandatory": ["fn"] }}, | |
"to": [{ "key_code": "f6" }] | |
}, | |
{ | |
"conditions": [{ "type": "device_if", "identifiers": [{ | |
"product_id": 257, "vendor_id": 1204 | |
}]}], | |
"type": "basic", | |
"from": { "key_code": "7", "modifiers": { "mandatory": ["fn"] }}, | |
"to": [{ "key_code": "f7" }] | |
} | |
, | |
{ | |
"conditions": [{ "type": "device_if", "identifiers": [{ | |
"product_id": 257, "vendor_id": 1204 | |
}]}], | |
"type": "basic", | |
"from": { "key_code": "8", "modifiers": { "mandatory": ["fn"] }}, | |
"to": [{ "key_code": "f8" }] | |
}, | |
{ | |
"conditions": [{ "type": "device_if", "identifiers": [{ | |
"product_id": 257, "vendor_id": 1204 | |
}]}], | |
"type": "basic", | |
"from": { "key_code": "9", "modifiers": { "mandatory": ["fn"] }}, | |
"to": [{ "key_code": "f9" }] | |
}, | |
{ | |
"conditions": [{ "type": "device_if", "identifiers": [{ | |
"product_id": 257, "vendor_id": 1204 | |
}]}], | |
"type": "basic", | |
"from": { "key_code": "0", "modifiers": { "mandatory": ["fn"] }}, | |
"to": [{ "key_code": "f10" }] | |
}, | |
{ | |
"conditions": [{ "type": "device_if", "identifiers": [{ | |
"product_id": 257, "vendor_id": 1204 | |
}]}], | |
"type": "basic", | |
"from": { "key_code": "hyphen", "modifiers": { "mandatory": ["fn"] }}, | |
"to": [{ "key_code": "f11" }] | |
}, | |
{ | |
"conditions": [{ "type": "device_if", "identifiers": [{ | |
"product_id": 257, "vendor_id": 1204 | |
}]}], | |
"type": "basic", | |
"from": { "key_code": "equal_sign", "modifiers": { "mandatory": ["fn"] }}, | |
"to": [{ "key_code": "f12" }] | |
} | |
] | |
}, | |
{ | |
"description": "Map fn-escape to tilde/accent", | |
"manipulators":[ | |
{ | |
"conditions": [{ "type": "device_if", "identifiers": [{ | |
"product_id": 257, "vendor_id": 1204 | |
}]}], | |
"type": "basic", | |
"from": { "key_code": "escape", "modifiers": { "mandatory": ["fn"] } }, | |
"to": [{ "key_code": "grave_accent_and_tilde" }] | |
} | |
] | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment