-
-
Save jeyraof/17524baca1261fb08e960531f350d4ed to your computer and use it in GitHub Desktop.
Karabiner-Elements Complex Modifications for HHKB
This file contains 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": "Esc & Tilde - revised by @dongminkim", | |
"rules": [ | |
{ | |
"description": "Esc as Tilde", | |
"manipulators": [ | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "escape", | |
"modifiers": { | |
"mandatory": [ | |
"command" | |
], | |
"optional": [ | |
"shift", | |
"caps_lock" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"modifiers": ["command"], | |
"key_code": "grave_accent_and_tilde" | |
} | |
] | |
}, | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "escape", | |
"modifiers": { | |
"mandatory": [ | |
"shift" | |
], | |
"optional": [ | |
"caps_lock" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"modifiers": ["shift"], | |
"key_code": "grave_accent_and_tilde" | |
} | |
] | |
}, | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "power", | |
"modifiers": { | |
"optional": [ | |
"caps_lock" | |
] | |
} | |
}, | |
"to_if_alone": [ | |
{ | |
"key_code": "grave_accent_and_tilde" | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"description": "Esc changes Input Source into EN", | |
"manipulators": [ | |
{ | |
"type": "basic", | |
"conditions": [ | |
{ | |
"type": "input_source_unless", | |
"input_sources": [ | |
{ | |
"language": "^en$" | |
} | |
] | |
} | |
], | |
"from": { | |
"key_code": "escape" | |
}, | |
"to_if_alone": [ | |
{ | |
"select_input_source": { | |
"input_source_id": "com.apple.keylayout.ABC", | |
"language": "en" | |
} | |
}, | |
{ | |
"key_code": "right_arrow" | |
}, | |
{ | |
"key_code": "escape" | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"description": "Backquote(`) intead of KRW symbol(₩)", | |
"manipulators": [ | |
{ | |
"type": "basic", | |
"conditions": [ | |
{ | |
"type": "input_source_if", | |
"input_sources": [ | |
{ | |
"language": "^ko$" | |
} | |
] | |
} | |
], | |
"from": { | |
"key_code": "grave_accent_and_tilde" | |
}, | |
"to_if_alone": [ | |
{ | |
"select_input_source": { | |
"language": "en" | |
} | |
} | |
], | |
"to_delayed_action": { | |
"to_if_invoked": [ | |
{ | |
"key_code": "grave_accent_and_tilde" | |
}, | |
{ | |
"select_input_source": { | |
"language": "ko" | |
} | |
} | |
] | |
}, | |
"parameters": { | |
"basic.to_delayed_action_delay_milliseconds": 250 | |
} | |
} | |
] | |
} | |
] | |
} |
This file contains 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": "Numeric Keypad - revised by @dongminkim", | |
"rules": [ | |
{ | |
"description": "Numeric Keypad", | |
"manipulators": [ | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "insert", | |
"modifiers": { | |
"optional": [ | |
"caps_lock" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"set_variable": { | |
"name": "numeric_keypad_mode", | |
"value": 1 | |
} | |
} | |
], | |
"conditions": [ | |
{ | |
"type": "variable_if", | |
"name": "numeric_keypad_mode", | |
"value": 0 | |
} | |
] | |
}, | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "insert", | |
"modifiers": { | |
"optional": [ | |
"caps_lock" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"set_variable": { | |
"name": "numeric_keypad_mode", | |
"value": 0 | |
} | |
} | |
], | |
"conditions": [ | |
{ | |
"type": "variable_if", | |
"name": "numeric_keypad_mode", | |
"value": 1 | |
} | |
] | |
}, | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "enter" | |
}, | |
"to": [ | |
{ | |
"key_code": "keypad_enter" | |
} | |
], | |
"conditions": [ | |
{ | |
"type": "variable_if", | |
"name": "numeric_keypad_mode", | |
"value": 1 | |
} | |
] | |
}, | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "7" | |
}, | |
"to": [ | |
{ | |
"key_code": "keypad_7" | |
} | |
], | |
"conditions": [ | |
{ | |
"type": "variable_if", | |
"name": "numeric_keypad_mode", | |
"value": 1 | |
} | |
] | |
}, | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "8" | |
}, | |
"to": [ | |
{ | |
"key_code": "keypad_8" | |
} | |
], | |
"conditions": [ | |
{ | |
"type": "variable_if", | |
"name": "numeric_keypad_mode", | |
"value": 1 | |
} | |
] | |
}, | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "9" | |
}, | |
"to": [ | |
{ | |
"key_code": "keypad_9" | |
} | |
], | |
"conditions": [ | |
{ | |
"type": "variable_if", | |
"name": "numeric_keypad_mode", | |
"value": 1 | |
} | |
] | |
}, | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "u" | |
}, | |
"to": [ | |
{ | |
"key_code": "keypad_4" | |
} | |
], | |
"conditions": [ | |
{ | |
"type": "variable_if", | |
"name": "numeric_keypad_mode", | |
"value": 1 | |
} | |
] | |
}, | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "i" | |
}, | |
"to": [ | |
{ | |
"key_code": "keypad_5" | |
} | |
], | |
"conditions": [ | |
{ | |
"type": "variable_if", | |
"name": "numeric_keypad_mode", | |
"value": 1 | |
} | |
] | |
}, | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "o" | |
}, | |
"to": [ | |
{ | |
"key_code": "keypad_6" | |
} | |
], | |
"conditions": [ | |
{ | |
"type": "variable_if", | |
"name": "numeric_keypad_mode", | |
"value": 1 | |
} | |
] | |
}, | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "j" | |
}, | |
"to": [ | |
{ | |
"key_code": "keypad_1" | |
} | |
], | |
"conditions": [ | |
{ | |
"type": "variable_if", | |
"name": "numeric_keypad_mode", | |
"value": 1 | |
} | |
] | |
}, | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "k" | |
}, | |
"to": [ | |
{ | |
"key_code": "keypad_2" | |
} | |
], | |
"conditions": [ | |
{ | |
"type": "variable_if", | |
"name": "numeric_keypad_mode", | |
"value": 1 | |
} | |
] | |
}, | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "l" | |
}, | |
"to": [ | |
{ | |
"key_code": "keypad_3" | |
} | |
], | |
"conditions": [ | |
{ | |
"type": "variable_if", | |
"name": "numeric_keypad_mode", | |
"value": 1 | |
} | |
] | |
}, | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "0" | |
}, | |
"to": [ | |
{ | |
"key_code": "keypad_plus" | |
} | |
], | |
"conditions": [ | |
{ | |
"type": "variable_if", | |
"name": "numeric_keypad_mode", | |
"value": 1 | |
} | |
] | |
}, | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "p" | |
}, | |
"to": [ | |
{ | |
"key_code": "keypad_hyphen" | |
} | |
], | |
"conditions": [ | |
{ | |
"type": "variable_if", | |
"name": "numeric_keypad_mode", | |
"value": 1 | |
} | |
] | |
}, | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "semicolon" | |
}, | |
"to": [ | |
{ | |
"key_code": "keypad_asterisk" | |
} | |
], | |
"conditions": [ | |
{ | |
"type": "variable_if", | |
"name": "numeric_keypad_mode", | |
"value": 1 | |
} | |
] | |
}, | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "m" | |
}, | |
"to": [ | |
{ | |
"key_code": "keypad_0" | |
} | |
], | |
"conditions": [ | |
{ | |
"type": "variable_if", | |
"name": "numeric_keypad_mode", | |
"value": 1 | |
} | |
] | |
}, | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "period" | |
}, | |
"to": [ | |
{ | |
"key_code": "keypad_period" | |
} | |
], | |
"conditions": [ | |
{ | |
"type": "variable_if", | |
"name": "numeric_keypad_mode", | |
"value": 1 | |
} | |
] | |
}, | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "slash" | |
}, | |
"to": [ | |
{ | |
"key_code": "keypad_slash" | |
} | |
], | |
"conditions": [ | |
{ | |
"type": "variable_if", | |
"name": "numeric_keypad_mode", | |
"value": 1 | |
} | |
] | |
}, | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "1" | |
}, | |
"to": [ | |
{ | |
"key_code": "keypad_1" | |
} | |
], | |
"conditions": [ | |
{ | |
"type": "variable_if", | |
"name": "numeric_keypad_mode", | |
"value": 1 | |
} | |
] | |
}, | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "2" | |
}, | |
"to": [ | |
{ | |
"key_code": "keypad_2" | |
} | |
], | |
"conditions": [ | |
{ | |
"type": "variable_if", | |
"name": "numeric_keypad_mode", | |
"value": 1 | |
} | |
] | |
}, | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "3" | |
}, | |
"to": [ | |
{ | |
"key_code": "keypad_3" | |
} | |
], | |
"conditions": [ | |
{ | |
"type": "variable_if", | |
"name": "numeric_keypad_mode", | |
"value": 1 | |
} | |
] | |
}, | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "q" | |
}, | |
"to": [ | |
{ | |
"key_code": "keypad_4" | |
} | |
], | |
"conditions": [ | |
{ | |
"type": "variable_if", | |
"name": "numeric_keypad_mode", | |
"value": 1 | |
} | |
] | |
}, | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "w" | |
}, | |
"to": [ | |
{ | |
"key_code": "keypad_5" | |
} | |
], | |
"conditions": [ | |
{ | |
"type": "variable_if", | |
"name": "numeric_keypad_mode", | |
"value": 1 | |
} | |
] | |
}, | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "e" | |
}, | |
"to": [ | |
{ | |
"key_code": "keypad_6" | |
} | |
], | |
"conditions": [ | |
{ | |
"type": "variable_if", | |
"name": "numeric_keypad_mode", | |
"value": 1 | |
} | |
] | |
}, | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "a" | |
}, | |
"to": [ | |
{ | |
"key_code": "keypad_7" | |
} | |
], | |
"conditions": [ | |
{ | |
"type": "variable_if", | |
"name": "numeric_keypad_mode", | |
"value": 1 | |
} | |
] | |
}, | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "s" | |
}, | |
"to": [ | |
{ | |
"key_code": "keypad_8" | |
} | |
], | |
"conditions": [ | |
{ | |
"type": "variable_if", | |
"name": "numeric_keypad_mode", | |
"value": 1 | |
} | |
] | |
}, | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "d" | |
}, | |
"to": [ | |
{ | |
"key_code": "keypad_9" | |
} | |
], | |
"conditions": [ | |
{ | |
"type": "variable_if", | |
"name": "numeric_keypad_mode", | |
"value": 1 | |
} | |
] | |
}, | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "z" | |
}, | |
"to": [ | |
{ | |
"key_code": "keypad_0" | |
} | |
], | |
"conditions": [ | |
{ | |
"type": "variable_if", | |
"name": "numeric_keypad_mode", | |
"value": 1 | |
} | |
] | |
}, | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "4" | |
}, | |
"to": [ | |
{ | |
"key_code": "keypad_plus" | |
} | |
], | |
"conditions": [ | |
{ | |
"type": "variable_if", | |
"name": "numeric_keypad_mode", | |
"value": 1 | |
} | |
] | |
}, | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "r" | |
}, | |
"to": [ | |
{ | |
"key_code": "keypad_hyphen" | |
} | |
], | |
"conditions": [ | |
{ | |
"type": "variable_if", | |
"name": "numeric_keypad_mode", | |
"value": 1 | |
} | |
] | |
}, | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "f" | |
}, | |
"to": [ | |
{ | |
"key_code": "keypad_asterisk" | |
} | |
], | |
"conditions": [ | |
{ | |
"type": "variable_if", | |
"name": "numeric_keypad_mode", | |
"value": 1 | |
} | |
] | |
}, | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "x" | |
}, | |
"to": [ | |
{ | |
"key_code": "comma" | |
} | |
], | |
"conditions": [ | |
{ | |
"type": "variable_if", | |
"name": "numeric_keypad_mode", | |
"value": 1 | |
} | |
] | |
}, | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "c" | |
}, | |
"to": [ | |
{ | |
"key_code": "keypad_period" | |
} | |
], | |
"conditions": [ | |
{ | |
"type": "variable_if", | |
"name": "numeric_keypad_mode", | |
"value": 1 | |
} | |
] | |
}, | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "v" | |
}, | |
"to": [ | |
{ | |
"key_code": "keypad_slash" | |
} | |
], | |
"conditions": [ | |
{ | |
"type": "variable_if", | |
"name": "numeric_keypad_mode", | |
"value": 1 | |
} | |
] | |
} | |
] | |
} | |
] | |
} |
This file contains 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": "Vimium - revised by @dongminkim", | |
"rules": [ | |
{ | |
"description": "System-wide Vimium", | |
"manipulators": [ | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "escape", | |
"modifiers": { | |
"mandatory": [ | |
"option" | |
], | |
"optional": [ | |
"caps_lock" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"set_variable": { | |
"name": "vimium", | |
"value": 1 | |
} | |
} | |
], | |
"conditions": [ | |
{ | |
"type": "variable_if", | |
"name": "vimium", | |
"value": 0 | |
} | |
] | |
}, | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "escape", | |
"modifiers": { | |
"optional": [ | |
"caps_lock" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"set_variable": { | |
"name": "vimium", | |
"value": 0 | |
} | |
} | |
], | |
"conditions": [ | |
{ | |
"type": "variable_if", | |
"name": "vimium", | |
"value": 1 | |
} | |
] | |
}, | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "g", | |
"modifiers": { | |
"optional": [ | |
"caps_lock" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"set_variable": { | |
"name": "vimium_g_tapped", | |
"value": 1 | |
} | |
} | |
], | |
"conditions": [ | |
{ | |
"type": "variable_if", | |
"name": "vimium", | |
"value": 1 | |
}, | |
{ | |
"type": "variable_if", | |
"name": "vimium_g_tapped", | |
"value": 0 | |
} | |
] | |
}, | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "h", | |
"modifiers": { | |
"optional": [ | |
"caps_lock" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "left_arrow" | |
} | |
], | |
"conditions": [ | |
{ | |
"type": "variable_if", | |
"name": "vimium", | |
"value": 1 | |
} | |
] | |
}, | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "j", | |
"modifiers": { | |
"optional": [ | |
"caps_lock" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "down_arrow" | |
} | |
], | |
"conditions": [ | |
{ | |
"type": "variable_if", | |
"name": "vimium", | |
"value": 1 | |
} | |
] | |
}, | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "k", | |
"modifiers": { | |
"optional": [ | |
"caps_lock" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "up_arrow" | |
} | |
], | |
"conditions": [ | |
{ | |
"type": "variable_if", | |
"name": "vimium", | |
"value": 1 | |
} | |
] | |
}, | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "l", | |
"modifiers": { | |
"optional": [ | |
"caps_lock" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "right_arrow" | |
} | |
], | |
"conditions": [ | |
{ | |
"type": "variable_if", | |
"name": "vimium", | |
"value": 1 | |
} | |
] | |
}, | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "g", | |
"modifiers": { | |
"optional": [ | |
"caps_lock" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "home" | |
}, | |
{ | |
"set_variable": { | |
"name": "vimium_g_tapped", | |
"value": 0 | |
} | |
} | |
], | |
"conditions": [ | |
{ | |
"type": "variable_if", | |
"name": "vimium_g_tapped", | |
"value": 1 | |
} | |
] | |
}, | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "g", | |
"modifiers": { | |
"mandatory": [ | |
"shift" | |
], | |
"optional": [ | |
"caps_lock" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "end" | |
} | |
], | |
"conditions": [ | |
{ | |
"type": "variable_if", | |
"name": "vimium", | |
"value": 1 | |
} | |
] | |
}, | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "b", | |
"modifiers": { | |
"optional": [ | |
"caps_lock", | |
"control" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "page_up" | |
} | |
], | |
"conditions": [ | |
{ | |
"type": "variable_if", | |
"name": "vimium", | |
"value": 1 | |
} | |
] | |
}, | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "f", | |
"modifiers": { | |
"optional": [ | |
"caps_lock", | |
"control" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "page_down" | |
} | |
], | |
"conditions": [ | |
{ | |
"type": "variable_if", | |
"name": "vimium", | |
"value": 1 | |
} | |
] | |
}, | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "u", | |
"modifiers": { | |
"mandatory": [ | |
"control" | |
], | |
"optional": [ | |
"caps_lock" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "up_arrow" | |
}, | |
{ | |
"key_code": "up_arrow" | |
}, | |
{ | |
"key_code": "up_arrow" | |
}, | |
{ | |
"key_code": "up_arrow" | |
}, | |
{ | |
"key_code": "up_arrow" | |
}, | |
{ | |
"key_code": "up_arrow" | |
}, | |
{ | |
"key_code": "up_arrow" | |
}, | |
{ | |
"key_code": "up_arrow" | |
}, | |
{ | |
"key_code": "up_arrow" | |
}, | |
{ | |
"key_code": "up_arrow" | |
}, | |
{ | |
"key_code": "up_arrow" | |
}, | |
{ | |
"key_code": "up_arrow" | |
}, | |
{ | |
"key_code": "up_arrow" | |
}, | |
{ | |
"key_code": "up_arrow" | |
}, | |
{ | |
"key_code": "up_arrow" | |
}, | |
{ | |
"key_code": "up_arrow" | |
}, | |
{ | |
"key_code": "up_arrow" | |
}, | |
{ | |
"key_code": "up_arrow" | |
}, | |
{ | |
"key_code": "up_arrow" | |
}, | |
{ | |
"key_code": "up_arrow" | |
} | |
], | |
"to_after_key_up": [ | |
{ | |
"key_code": "vk_none" | |
} | |
], | |
"conditions": [ | |
{ | |
"type": "variable_if", | |
"name": "vimium", | |
"value": 1 | |
} | |
] | |
}, | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "d", | |
"modifiers": { | |
"mandatory": [ | |
"control" | |
], | |
"optional": [ | |
"caps_lock" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "down_arrow" | |
}, | |
{ | |
"key_code": "down_arrow" | |
}, | |
{ | |
"key_code": "down_arrow" | |
}, | |
{ | |
"key_code": "down_arrow" | |
}, | |
{ | |
"key_code": "down_arrow" | |
}, | |
{ | |
"key_code": "down_arrow" | |
}, | |
{ | |
"key_code": "down_arrow" | |
}, | |
{ | |
"key_code": "down_arrow" | |
}, | |
{ | |
"key_code": "down_arrow" | |
}, | |
{ | |
"key_code": "down_arrow" | |
}, | |
{ | |
"key_code": "down_arrow" | |
}, | |
{ | |
"key_code": "down_arrow" | |
}, | |
{ | |
"key_code": "down_arrow" | |
}, | |
{ | |
"key_code": "down_arrow" | |
}, | |
{ | |
"key_code": "down_arrow" | |
}, | |
{ | |
"key_code": "down_arrow" | |
}, | |
{ | |
"key_code": "down_arrow" | |
}, | |
{ | |
"key_code": "down_arrow" | |
}, | |
{ | |
"key_code": "down_arrow" | |
}, | |
{ | |
"key_code": "down_arrow" | |
} | |
], | |
"to_after_key_up": [ | |
{ | |
"key_code": "vk_none" | |
} | |
], | |
"conditions": [ | |
{ | |
"type": "variable_if", | |
"name": "vimium", | |
"value": 1 | |
} | |
] | |
}, | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "slash", | |
"modifiers": { | |
"optional": [ | |
"caps_lock" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "f", | |
"modifiers": [ | |
"left_command" | |
] | |
}, | |
{ | |
"key_code": "vk_none" | |
}, | |
{ | |
"set_variable": { | |
"name": "vimium", | |
"value": 0 | |
} | |
} | |
], | |
"conditions": [ | |
{ | |
"type": "variable_if", | |
"name": "vimium", | |
"value": 1 | |
} | |
] | |
}, | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "n", | |
"modifiers": { | |
"optional": [ | |
"caps_lock" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "g", | |
"modifiers": [ | |
"left_command" | |
] | |
} | |
], | |
"to_after_key_up": [ | |
{ | |
"key_code": "vk_none" | |
} | |
], | |
"conditions": [ | |
{ | |
"type": "variable_if", | |
"name": "vimium", | |
"value": 1 | |
} | |
] | |
}, | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "n", | |
"modifiers": { | |
"mandatory": [ | |
"shift" | |
], | |
"optional": [ | |
"caps_lock" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "g", | |
"modifiers": [ | |
"left_command", | |
"left_shift" | |
] | |
} | |
], | |
"to_after_key_up": [ | |
{ | |
"key_code": "vk_none" | |
} | |
], | |
"conditions": [ | |
{ | |
"type": "variable_if", | |
"name": "vimium", | |
"value": 1 | |
} | |
] | |
}, | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "j", | |
"modifiers": { | |
"mandatory": [ | |
"shift" | |
], | |
"optional": [ | |
"caps_lock" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "tab", | |
"modifiers": [ | |
"left_control", | |
"left_shift" | |
] | |
} | |
], | |
"to_after_key_up": [ | |
{ | |
"key_code": "vk_none" | |
} | |
], | |
"conditions": [ | |
{ | |
"type": "variable_if", | |
"name": "vimium", | |
"value": 1 | |
} | |
] | |
}, | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "k", | |
"modifiers": { | |
"mandatory": [ | |
"shift" | |
], | |
"optional": [ | |
"caps_lock" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "tab", | |
"modifiers": [ | |
"left_control" | |
] | |
} | |
], | |
"to_after_key_up": [ | |
{ | |
"key_code": "vk_none" | |
} | |
], | |
"conditions": [ | |
{ | |
"type": "variable_if", | |
"name": "vimium", | |
"value": 1 | |
} | |
] | |
}, | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "t", | |
"modifiers": { | |
"mandatory": [ | |
"shift" | |
], | |
"optional": [ | |
"caps_lock" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "tab", | |
"modifiers": [ | |
"left_control", | |
"left_shift" | |
] | |
}, | |
{ | |
"set_variable": { | |
"name": "vimium_g_tapped", | |
"value": 0 | |
} | |
} | |
], | |
"to_after_key_up": [ | |
{ | |
"key_code": "vk_none" | |
} | |
], | |
"conditions": [ | |
{ | |
"type": "variable_if", | |
"name": "vimium_g_tapped", | |
"value": 1 | |
} | |
] | |
}, | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "t", | |
"modifiers": { | |
"optional": [ | |
"caps_lock" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "tab", | |
"modifiers": [ | |
"left_control" | |
] | |
}, | |
{ | |
"set_variable": { | |
"name": "vimium_g_tapped", | |
"value": 0 | |
} | |
} | |
], | |
"to_after_key_up": [ | |
{ | |
"key_code": "vk_none" | |
} | |
], | |
"conditions": [ | |
{ | |
"type": "variable_if", | |
"name": "vimium_g_tapped", | |
"value": 1 | |
} | |
] | |
}, | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "0", | |
"modifiers": { | |
"optional": [ | |
"caps_lock" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "1", | |
"modifiers": [ | |
"left_command" | |
] | |
}, | |
{ | |
"set_variable": { | |
"name": "vimium_g_tapped", | |
"value": 0 | |
} | |
} | |
], | |
"to_after_key_up": [ | |
{ | |
"key_code": "vk_none" | |
} | |
], | |
"conditions": [ | |
{ | |
"type": "variable_if", | |
"name": "vimium_g_tapped", | |
"value": 1 | |
} | |
] | |
}, | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "4", | |
"modifiers": { | |
"optional": [ | |
"caps_lock", | |
"shift" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "1", | |
"modifiers": [ | |
"left_command" | |
] | |
}, | |
{ | |
"key_code": "tab", | |
"modifiers": [ | |
"left_control", | |
"left_shift" | |
] | |
}, | |
{ | |
"set_variable": { | |
"name": "vimium_g_tapped", | |
"value": 0 | |
} | |
} | |
], | |
"to_after_key_up": [ | |
{ | |
"key_code": "vk_none" | |
} | |
], | |
"conditions": [ | |
{ | |
"type": "variable_if", | |
"name": "vimium_g_tapped", | |
"value": 1 | |
} | |
] | |
}, | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "x", | |
"modifiers": { | |
"optional": [ | |
"caps_lock" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "w", | |
"modifiers": [ | |
"left_command" | |
] | |
} | |
], | |
"to_after_key_up": [ | |
{ | |
"key_code": "vk_none" | |
} | |
], | |
"conditions": [ | |
{ | |
"type": "variable_if", | |
"name": "vimium", | |
"value": 1 | |
} | |
] | |
}, | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "x", | |
"modifiers": { | |
"mandatory": [ | |
"shift" | |
], | |
"optional": [ | |
"caps_lock" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "t", | |
"modifiers": [ | |
"left_command", | |
"left_shift" | |
] | |
} | |
], | |
"to_after_key_up": [ | |
{ | |
"key_code": "vk_none" | |
} | |
], | |
"conditions": [ | |
{ | |
"type": "variable_if", | |
"name": "vimium", | |
"value": 1 | |
} | |
] | |
}, | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "t", | |
"modifiers": { | |
"optional": [ | |
"caps_lock" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "t", | |
"modifiers": [ | |
"left_command" | |
] | |
} | |
], | |
"to_after_key_up": [ | |
{ | |
"key_code": "vk_none" | |
} | |
], | |
"conditions": [ | |
{ | |
"type": "variable_if", | |
"name": "vimium", | |
"value": 1 | |
} | |
] | |
}, | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "r", | |
"modifiers": { | |
"optional": [ | |
"caps_lock" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "r", | |
"modifiers": [ | |
"left_command" | |
] | |
} | |
], | |
"to_after_key_up": [ | |
{ | |
"key_code": "vk_none" | |
} | |
], | |
"conditions": [ | |
{ | |
"type": "variable_if", | |
"name": "vimium", | |
"value": 1 | |
} | |
] | |
}, | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "u", | |
"modifiers": { | |
"optional": [ | |
"caps_lock" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "z", | |
"modifiers": [ | |
"left_command" | |
] | |
} | |
], | |
"to_after_key_up": [ | |
{ | |
"key_code": "vk_none" | |
} | |
], | |
"conditions": [ | |
{ | |
"type": "variable_if", | |
"name": "vimium", | |
"value": 1 | |
} | |
] | |
}, | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "r", | |
"modifiers": { | |
"mandatory": [ | |
"control" | |
], | |
"optional": [ | |
"caps_lock" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "z", | |
"modifiers": [ | |
"left_command", | |
"left_shift" | |
] | |
} | |
], | |
"to_after_key_up": [ | |
{ | |
"key_code": "vk_none" | |
} | |
], | |
"conditions": [ | |
{ | |
"type": "variable_if", | |
"name": "vimium", | |
"value": 1 | |
} | |
] | |
}, | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "left_shift" | |
}, | |
"to": [ | |
{ | |
"key_code": "left_shift" | |
} | |
], | |
"conditions": [ | |
{ | |
"type": "variable_if", | |
"name": "vimium_g_tapped", | |
"value": 1 | |
} | |
] | |
}, | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "right_shift" | |
}, | |
"to": [ | |
{ | |
"key_code": "right_shift" | |
} | |
], | |
"conditions": [ | |
{ | |
"type": "variable_if", | |
"name": "vimium_g_tapped", | |
"value": 1 | |
} | |
] | |
}, | |
{ | |
"type": "basic", | |
"from": { | |
"any": "key_code", | |
"modifiers": { | |
"optional": [ | |
"any" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"set_variable": { | |
"name": "vimium_g_tapped", | |
"value": 0 | |
} | |
} | |
], | |
"conditions": [ | |
{ | |
"type": "variable_if", | |
"name": "vimium_g_tapped", | |
"value": 1 | |
} | |
] | |
}, | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "left_shift" | |
}, | |
"to": [ | |
{ | |
"key_code": "left_shift" | |
} | |
], | |
"conditions": [ | |
{ | |
"type": "variable_if", | |
"name": "vimium", | |
"value": 1 | |
} | |
] | |
}, | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "right_shift" | |
}, | |
"to": [ | |
{ | |
"key_code": "right_shift" | |
} | |
], | |
"conditions": [ | |
{ | |
"type": "variable_if", | |
"name": "vimium", | |
"value": 1 | |
} | |
] | |
}, | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "left_control" | |
}, | |
"to": [ | |
{ | |
"key_code": "left_control" | |
} | |
], | |
"conditions": [ | |
{ | |
"type": "variable_if", | |
"name": "vimium", | |
"value": 1 | |
} | |
] | |
}, | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "right_control" | |
}, | |
"to": [ | |
{ | |
"key_code": "right_control" | |
} | |
], | |
"conditions": [ | |
{ | |
"type": "variable_if", | |
"name": "vimium", | |
"value": 1 | |
} | |
] | |
}, | |
{ | |
"type": "basic", | |
"from": { | |
"any": "key_code", | |
"modifiers": { | |
"optional": [ | |
"any" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "vk_none" | |
} | |
], | |
"conditions": [ | |
{ | |
"type": "variable_if", | |
"name": "vimium", | |
"value": 1 | |
} | |
] | |
} | |
] | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment