Last active
May 29, 2020 09:54
-
-
Save nekoya/2e04e2d67be5d31e8091b36f3021fbed to your computer and use it in GitHub Desktop.
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": "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" | |
} | |
] | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
~/.config/karabiner/assets/complex_modifications/karabiner.json