Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save yuki-yano/77691ff266d802a52c6985d7a9731550 to your computer and use it in GitHub Desktop.

Select an option

Save yuki-yano/77691ff266d802a52c6985d7a9731550 to your computer and use it in GitHub Desktop.
Switch Option to Meta in Terminal and alacritty
{
"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