Skip to content

Instantly share code, notes, and snippets.

@mohaalak
Last active April 21, 2020 09:07
Show Gist options
  • Save mohaalak/c2ae7664d2272a449422b9c935fff8a0 to your computer and use it in GitHub Desktop.
Save mohaalak/c2ae7664d2272a449422b9c935fff8a0 to your computer and use it in GitHub Desktop.
Caps Lock to Ctrl/Escape- KarabinerElements
{
"title": "Caps Lock To Ctrl/Escape",
"author": "Hadi Aliakbar(mohaalak.com)",
"homepage": "https://gist.github.com/mohaalak/c2ae7664d2272a449422b9c935fff8a0",
"import_url": "karabiner://karabiner/assets/complex_modifications/import?url=https://gist.githubusercontent.com/mohaalak/c2ae7664d2272a449422b9c935fff8a0/raw/bf99a2bb384089fc8a7308caf733d9362b1e3762/caps_lock_to_ctrl_escape.json",
"rules": [
{
"description": "Caps Lock to Ctrl/Escape",
"manipulators": [
{
"description": "Change caps_lock to control when used as modifier, escape when used alone",
"from": {
"key_code": "caps_lock",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "left_control"
}
],
"to_if_alone": [
{
"key_code": "escape",
"modifiers": {
"optional": [
"any"
]
}
}
],
"type": "basic"
}
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment