Skip to content

Instantly share code, notes, and snippets.

@hyuki
Last active May 12, 2023 23:14
Show Gist options
  • Save hyuki/99e68588aa0da7e865ede5b7970ab2a2 to your computer and use it in GitHub Desktop.
Save hyuki/99e68588aa0da7e865ede5b7970ab2a2 to your computer and use it in GitHub Desktop.
change-left-control-j-to-eisuu-kana-toggle.json (for Karabiner-Elements)
{
"title": "Change left control+H to backspace",
"rules": [
{
"description": "Change left control+H to backspace",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "h",
"modifiers": {
"mandatory": [
"left_control"
]
}
},
"to": [
{
"key_code": "delete_or_backspace"
}
]
}
]
}
]
}
{
"title": "Change left control+J to eisuu/kana toggle",
"rules": [
{
"description": "Change left control+J to eisuu/kana toggle",
"manipulators": [
{
"type": "basic",
"conditions": [
{
"input_sources": [
{
"language": "ja"
}
],
"type": "input_source_if"
}
],
"from": {
"key_code": "j",
"modifiers": {
"mandatory": [
"left_control"
]
}
},
"to": [
{
"key_code": "japanese_eisuu"
}
]
},
{
"type": "basic",
"conditions": [
{
"input_sources": [
{
"language": "en"
}
],
"type": "input_source_if"
}
],
"from": {
"key_code": "k",
"modifiers": {
"mandatory": [
"left_control"
]
}
},
"to": [
{
"key_code": "japanese_kana"
}
]
}
]
}
]
}
@hyuki
Copy link
Author

hyuki commented May 11, 2023

Install

  1. Save change-left-control-j-to-eisuu-kana-toggle.json to ~/.config/karabiner/assets/complex_modifications.
  2. Update ~/.config/karabiner/karabiner.json to reload.

References

@hyuki
Copy link
Author

hyuki commented May 12, 2023

Added: change-left-control-h-to-backspace.json

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment