Skip to content

Instantly share code, notes, and snippets.

@thelastlin
Last active December 23, 2021 10:56
Show Gist options
  • Save thelastlin/c1269683470531873ec89e95ce3d6198 to your computer and use it in GitHub Desktop.
Save thelastlin/c1269683470531873ec89e95ce3d6198 to your computer and use it in GitHub Desktop.
karabiner configure: Use FN+Caps as Caps, Caps as Right Control
{
"title": "",
"rules": [
{
"description": "Fn+Caps Lock as Caps Lock",
"manipulators": [
{
"type": "basic",
"from": {
"modifiers": {
"mandatory": [
"fn"
],
"optional": [
"any"
]
},
"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"
}
]
}
]
}
]
},
{
"description": "Caps Lock as Right Control",
"manipulators": [
{
"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"
}
]
}
]
}
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment