Created
June 21, 2019 11:20
-
-
Save soomtong/b3837a601a5e27032222342f92f0aa13 to your computer and use it in GitHub Desktop.
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": "한/영 전환 with Caps Lock for Ext keyboard", | |
| "rules": [ | |
| { | |
| "description": "Post CapsLock to F16 (press alone) or Control (press with others)", | |
| "manipulators": [ | |
| { | |
| "type": "basic", | |
| "parameters": { | |
| "basic.to_if_alone_timeout_milliseconds": 250, | |
| "basic.to_if_held_down_threshold_milliseconds": 250 | |
| }, | |
| "from": { | |
| "key_code": "caps_lock" | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "left_control" | |
| } | |
| ], | |
| "to_if_alone": [ | |
| { | |
| "key_code": "f16" | |
| } | |
| ], | |
| "to_if_held_down": [ | |
| { | |
| "key_code": "left_control" | |
| } | |
| ] | |
| } | |
| ] | |
| }, | |
| { | |
| "description": "Post RightControl to CapsLock", | |
| "manipulators": [ | |
| { | |
| "type": "basic", | |
| "parameters": { "basic.to_if_alone_timeout_milliseconds": 375, | |
| "basic.to_if_held_down_threshold_milliseconds": 375 | |
| }, | |
| "from": { | |
| "key_code": "right_control", | |
| "modifiers": { | |
| "optional": [ | |
| "any" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "caps_lock" | |
| } | |
| ] | |
| } | |
| ] | |
| }, | |
| { | |
| "description": "Post LeftControl to CapsLock if key is Held", | |
| "manipulators": [ | |
| { | |
| "type": "basic", | |
| "parameters": { | |
| "basic.to_if_alone_timeout_milliseconds": 375, | |
| "basic.to_if_held_down_threshold_milliseconds": 375 | |
| }, | |
| "from": { | |
| "key_code": "left_control", | |
| "modifiers": { | |
| "optional": [ | |
| "any" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "left_control" | |
| } | |
| ], | |
| "to_if_held_down": [ | |
| { | |
| "key_code": "caps_lock" | |
| } | |
| ] | |
| } | |
| ] | |
| } | |
| ] | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment