Last active
September 6, 2021 05:02
-
-
Save yetone/b29b79b16fb8fec16dbbdc7f39702352 to your computer and use it in GitHub Desktop.
Revisions
-
yetone revised this gist
May 1, 2019 . 1 changed file with 69 additions and 71 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,73 +1,71 @@ { "description": "Switch between zh-Hans <-> en (left_shift)", "manipulators": [ { "conditions": [ { "input_sources": [ { "language": "en" } ], "type": "input_source_if" } ], "from": { "key_code": "left_shift", "modifiers": { "optional": [ "any" ] } }, "to": [ { "key_code": "left_shift" } ], "to_if_alone": [ { "select_input_source": { "language": "zh-Hans" } } ], "type": "basic" }, { "conditions": [ { "input_sources": [ { "language": "zh-Hans" } ], "type": "input_source_if" } ], "from": { "key_code": "left_shift", "modifiers": { "optional": [ "any" ] } }, "to": [ { "key_code": "left_shift" } ], "to_if_alone": [ { "select_input_source": { "language": "en" } } ], "type": "basic" } ] } -
yetone created this gist
May 1, 2019 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,73 @@ ```json { "description": "Switch between zh-Hans <-> en (left_shift)", "manipulators": [ { "conditions": [ { "input_sources": [ { "language": "en" } ], "type": "input_source_if" } ], "from": { "key_code": "left_shift", "modifiers": { "optional": [ "any" ] } }, "to": [ { "key_code": "left_shift" } ], "to_if_alone": [ { "select_input_source": { "language": "zh-Hans" } } ], "type": "basic" }, { "conditions": [ { "input_sources": [ { "language": "zh-Hans" } ], "type": "input_source_if" } ], "from": { "key_code": "left_shift", "modifiers": { "optional": [ "any" ] } }, "to": [ { "key_code": "left_shift" } ], "to_if_alone": [ { "select_input_source": { "language": "en" } } ], "type": "basic" } ] } ```