Created
March 5, 2026 00:41
-
-
Save kylejohnston/d403ca7887b482be771e62ebe049ee41 to your computer and use it in GitHub Desktop.
Karabiner Rule: caps l caps lock → hyper key ¦ double-tap=f12, long-press=f8
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
| { | |
| "description": "caps lock → hyper key ¦ double-tap=f12, long-press=f8", | |
| "manipulators": [ | |
| { | |
| "conditions": [ | |
| { | |
| "name": "hyper_caps_tap", | |
| "type": "variable_if", | |
| "value": 1 | |
| } | |
| ], | |
| "from": { | |
| "key_code": "caps_lock", | |
| "modifiers": { "optional": ["any"] } | |
| }, | |
| "parameters": { | |
| "basic.to_if_alone_timeout_milliseconds": 400, | |
| "basic.to_if_held_down_threshold_milliseconds": 400 | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "left_shift", | |
| "modifiers": ["left_command", "left_control", "left_option"] | |
| } | |
| ], | |
| "to_if_alone": [ | |
| { | |
| "set_variable": { | |
| "name": "hyper_caps_tap", | |
| "value": 0 | |
| } | |
| }, | |
| { | |
| "key_code": "f12", | |
| "modifiers": ["fn"] | |
| } | |
| ], | |
| "to_if_held_down": [ | |
| { | |
| "set_variable": { | |
| "name": "hyper_caps_tap", | |
| "value": 0 | |
| } | |
| }, | |
| { | |
| "key_code": "f8", | |
| "modifiers": ["fn"] | |
| } | |
| ], | |
| "type": "basic" | |
| }, | |
| { | |
| "conditions": [ | |
| { | |
| "name": "hyper_caps_tap", | |
| "type": "variable_unless", | |
| "value": 1 | |
| } | |
| ], | |
| "from": { | |
| "key_code": "caps_lock", | |
| "modifiers": { "optional": ["any"] } | |
| }, | |
| "parameters": { | |
| "basic.to_if_alone_timeout_milliseconds": 400, | |
| "basic.to_if_held_down_threshold_milliseconds": 400 | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "left_shift", | |
| "modifiers": ["left_command", "left_control", "left_option"] | |
| } | |
| ], | |
| "to_delayed_action": { | |
| "to_if_canceled": [ | |
| { | |
| "set_variable": { | |
| "name": "hyper_caps_tap", | |
| "value": 0 | |
| } | |
| } | |
| ], | |
| "to_if_invoked": [ | |
| { | |
| "set_variable": { | |
| "name": "hyper_caps_tap", | |
| "value": 0 | |
| } | |
| } | |
| ] | |
| }, | |
| "to_if_alone": [ | |
| { | |
| "set_variable": { | |
| "name": "hyper_caps_tap", | |
| "value": 1 | |
| } | |
| } | |
| ], | |
| "to_if_held_down": [ | |
| { | |
| "set_variable": { | |
| "name": "hyper_caps_tap", | |
| "value": 0 | |
| } | |
| }, | |
| { | |
| "key_code": "f8", | |
| "modifiers": ["fn"] | |
| } | |
| ], | |
| "type": "basic" | |
| } | |
| ] | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment