Skip to content

Instantly share code, notes, and snippets.

@sei0o
Created December 27, 2018 09:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sei0o/5ff661b818e89d49a747fb98b4e3b47e to your computer and use it in GitHub Desktop.
Save sei0o/5ff661b818e89d49a747fb98b4e3b47e to your computer and use it in GitHub Desktop.
Assigns Right Alt of HHKB to toggle the input mode (eisuu/kana). Karabiner required. Put the file below in ~/.config/karabiner/assets/complex_modifications .
{
"title": "HHKB sei0o settings",
"rules": [
{
"description": "Set Right Alt key to toggle the input mode",
"manipulators": [
{
"type": "basic",
"description": "hogehoge",
"from": { "key_code": "right_alt" },
"to": [ { "key_code": "lang1" } ],
"conditions": [
{
"type": "input_source_if",
"input_sources": [ { "language": "en"} ]
}
]
},
{
"type": "basic",
"description": "hogehoge",
"from": { "key_code": "right_alt" },
"to": [ { "key_code": "lang2" } ],
"conditions": [
{
"type": "input_source_if",
"input_sources": [ { "language": "ja"} ]
}
]
}
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment