Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Karabiner rule for double-press left shift -> caps lock
{
"description": "Double left shift to caps_lock",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "left_shift",
"modifiers": {
"optional": ["any"]
}
},
"to": [
{
"key_code": "caps_lock"
}
],
"conditions": [
{
"type": "variable_if",
"name": "left_shift pressed",
"value": 1
}
]
},
{
"type": "basic",
"from": {
"key_code": "left_shift",
"modifiers": {
"optional": ["any"]
}
},
"to": [
{
"set_variable": {
"name": "left_shift pressed",
"value": 1
}
},
{
"key_code": "left_shift"
}
],
"to_delayed_action": {
"to_if_invoked": [
{
"set_variable": {
"name": "left_shift pressed",
"value": 0
}
}
],
"to_if_canceled": [
{
"set_variable": {
"name": "left_shift pressed",
"value": 0
}
}
]
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.