Skip to content

Instantly share code, notes, and snippets.

@nekoya
Last active May 29, 2020 09:54
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 nekoya/2e04e2d67be5d31e8091b36f3021fbed to your computer and use it in GitHub Desktop.
Save nekoya/2e04e2d67be5d31e8091b36f3021fbed to your computer and use it in GitHub Desktop.
{
"title": "nekoya",
"rules": [
{
"description": "backslash",
"manipulators": [
{
"conditions": [{"input_sources": [{"language": "en"}], "type": "input_source_if"}],
"from": {"key_code": "international3"},
"to": [{"key_code": "international3", "modifiers": "option"}],
"type": "basic"
}
]
},
{
"description": "HHKB kana toggle",
"manipulators": [
{
"conditions": [{"input_sources": [{"language": "en"}],"type": "input_source_if"}],
"from": {"key_code": "international4"},
"to": [{"key_code": "japanese_kana"}],
"type": "basic"
},
{
"conditions": [{"input_sources": [{"language": "ja"}],"type": "input_source_if"}],
"from": {"key_code": "international4"},
"to": [{"key_code": "japanese_eisuu"}],
"type": "basic"
}
]
},
{
"description": "HHKB eisuu plus esc",
"manipulators": [
{
"from": {"key_code": "international5"},
"to": [
{"key_code": "japanese_eisuu"},
{"key_code": "escape"}
],
"type": "basic"
}
]
},
{
"description": "HHKB right-alt to command",
"manipulators": [
{
"from": {"key_code": "international2"},
"to": [{"key_code": "left_gui"}],
"type": "basic"
}
]
},
{
"description": "HHKB quote",
"manipulators": [
{
"conditions": [{"input_sources": [{"language": "en"}], "type": "input_source_if"}],
"from": {"key_code": "non_us_pound"},
"to": [{"key_code": "7", "modifiers": "shift"}],
"type": "basic"
},
{
"conditions": [{"input_sources": [{"language": "en"}], "type": "input_source_if"}],
"from": {"key_code": "non_us_pound", "modifiers": {"optional": ["shift"]}},
"to": [{"key_code": "2", "modifiers": "shift"}],
"type": "basic"
}
]
},
{
"description": "kana toggle",
"manipulators": [
{
"conditions": [{"input_sources": [{"language": "ja"}],"type": "input_source_if"}],
"from": {"key_code": "japanese_kana"},
"to": [{"key_code": "japanese_eisuu"}],
"type": "basic"
}
]
},
{
"description": "eisuu plus esc",
"manipulators": [
{
"from": {"key_code": "japanese_eisuu"},
"to": [
{"key_code": "japanese_eisuu"},
{"key_code": "escape"}
],
"type": "basic"
}
]
},
{
"description": "ascii like chars only IME-disabled",
"manipulators": [
{
"conditions": [{"input_sources": [{"language": "en"}], "type": "input_source_if"}],
"from": {"key_code": "2", "modifiers": {"mandatory": ["shift"]}},
"to": [{"key_code": "open_bracket"}],
"type": "basic"
},
{
"conditions": [{"input_sources": [{"language": "en"}], "type": "input_source_if"}],
"from": {"key_code": "open_bracket", "modifiers": {"optional": ["shift"]}},
"to": [{"key_code": "close_bracket"}],
"type": "basic"
},
{
"conditions": [{"input_sources": [{"language": "en"}], "type": "input_source_if"}],
"from": {"key_code": "close_bracket", "modifiers": {"optional": ["shift"]}},
"to": [{"key_code": "backslash"}],
"type": "basic"
},
{
"conditions": [{"input_sources": [{"language": "en"}], "type": "input_source_if"}],
"from": {"key_code": "backslash"},
"to": [{"key_code": "7", "modifiers": "shift"}],
"type": "basic"
},
{
"conditions": [{"input_sources": [{"language": "en"}], "type": "input_source_if"}],
"from": {"key_code": "backslash", "modifiers": {"mandatory": ["shift"]}},
"to": [{"key_code": "2", "modifiers": "shift"}],
"type": "basic"
},
{
"conditions": [{"input_sources": [{"language": "en"}], "type": "input_source_if"}],
"from": {"key_code": "7", "modifiers": {"mandatory": ["shift"]}},
"to": [{"key_code": "equal_sign"}],
"type": "basic"
},
{
"conditions": [{"input_sources": [{"language": "en"}], "type": "input_source_if"}],
"from": {"key_code": "hyphen", "modifiers": {"mandatory": ["shift"]}},
"to": [{"key_code": "international1"}],
"type": "basic"
},
{
"conditions": [{"input_sources": [{"language": "en"}], "type": "input_source_if"}],
"from": {"key_code": "international1"},
"to": [{"key_code": "open_bracket", "modifiers": "shift"}],
"type": "basic"
},
{
"conditions": [{"input_sources": [{"language": "en"}], "type": "input_source_if"}],
"from": {"key_code": "equal_sign"},
"to": [{"key_code": "hyphen", "modifiers": "shift"}],
"type": "basic"
}
]
}
]
}
@nekoya
Copy link
Author

nekoya commented Sep 4, 2018

~/.config/karabiner/assets/complex_modifications/karabiner.json

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