Last active
July 4, 2018 08:25
-
-
Save yuki-yano/77691ff266d802a52c6985d7a9731550 to your computer and use it in GitHub Desktop.
Switch Option to Meta in Terminal and alacritty
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": "Switch Option to Meta in Terminal and alacritty", | |
| "rules": [ | |
| { | |
| "description": "Switch Option to Meta in Terminal and alacritty", | |
| "manipulators": | |
| <%= | |
| TerminalKeys = ["a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z"] | |
| each_key( | |
| source_keys_list: TerminalKeys, | |
| dest_keys_list: TerminalKeys, | |
| from_mandatory_modifiers: ["command"], | |
| to_modifiers: ["option"], | |
| from_optional_modifiers: ["shift"], | |
| conditions: [ | |
| { | |
| "type": "frontmost_application_if", | |
| "bundle_identifiers": | |
| [ | |
| "^com\\.apple\\.Terminal$", | |
| "^io\\.alacritty$", | |
| ] | |
| } | |
| ], | |
| as_json: true | |
| ) | |
| %> | |
| } | |
| ] | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment