Created
September 6, 2021 06:28
-
-
Save navhaxs/7b3053bad2c8f34c975b3db06d441b8a to your computer and use it in GitHub Desktop.
Jeremy's mac binding for karabiner-elements
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": "[macOS] Use Caps Lock + Arrows to Navigate Tabs (Jeremy)", | |
"rules": [ | |
{ | |
"description": "Navigate Tabs with CapsLock + Any Arrows", | |
"manipulators": [ | |
{ | |
"type": "basic", | |
"from": { | |
"modifiers": { | |
"optional": [ | |
"any" | |
] | |
}, | |
"key_code": "left_arrow" | |
}, | |
"to": [ | |
{ | |
"key_code": "left_arrow", | |
"modifiers": [ | |
"left_gui", | |
"left_alt" | |
] | |
} | |
], | |
"conditions": [ | |
{ | |
"type": "variable_if", | |
"name": "caps_lock pressed", | |
"value": 1 | |
} | |
] | |
}, | |
{ | |
"type": "basic", | |
"from": { | |
"modifiers": { | |
"optional": [ | |
"any" | |
] | |
}, | |
"key_code": "right_arrow" | |
}, | |
"to": [ | |
{ | |
"key_code": "right_arrow", | |
"modifiers": [ | |
"left_gui", | |
"left_alt" | |
] | |
} | |
], | |
"conditions": [ | |
{ | |
"type": "variable_if", | |
"name": "caps_lock pressed", | |
"value": 1 | |
} | |
] | |
}, | |
{ | |
"type": "basic", | |
"from": { | |
"modifiers": { | |
"optional": [ | |
"any" | |
] | |
}, | |
"key_code": "up_arrow" | |
}, | |
"to": [ | |
{ | |
"key_code": "up_arrow", | |
"modifiers": [ | |
"left_gui", | |
"left_alt" | |
] | |
} | |
], | |
"conditions": [ | |
{ | |
"type": "variable_if", | |
"name": "caps_lock pressed", | |
"value": 1 | |
} | |
] | |
}, | |
{ | |
"type": "basic", | |
"from": { | |
"modifiers": { | |
"optional": [ | |
"any" | |
] | |
}, | |
"key_code": "down_arrow" | |
}, | |
"to": [ | |
{ | |
"key_code": "down_arrow", | |
"modifiers": [ | |
"left_gui", | |
"left_alt" | |
] | |
} | |
], | |
"conditions": [ | |
{ | |
"type": "variable_if", | |
"name": "caps_lock pressed", | |
"value": 1 | |
} | |
] | |
}, | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "caps_lock", | |
"modifiers": { | |
"optional": [ | |
"any" | |
] | |
} | |
}, | |
"to_if_alone": [ | |
{ | |
"key_code": "escape" | |
} | |
], | |
"to": [ | |
{ | |
"set_variable": { | |
"name": "caps_lock pressed", | |
"value": 1 | |
} | |
} | |
], | |
"to_after_key_up": [ | |
{ | |
"set_variable": { | |
"name": "caps_lock pressed", | |
"value": 0 | |
} | |
} | |
] | |
} | |
] | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment