Skip to content

Instantly share code, notes, and snippets.

@usagimaru
Created February 4, 2018 09:11
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save usagimaru/838af951533c237a85591eb3c0b4cd1d to your computer and use it in GitHub Desktop.
Save usagimaru/838af951533c237a85591eb3c0b4cd1d to your computer and use it in GitHub Desktop.
complex_modifications for Karabiner-Elements
{
"title": "カスタム",
"rules": [
{
"description": "左option: 英数/右command: かな",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "left_option",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "left_option"
}
],
"to_if_alone": [
{
"key_code": "japanese_eisuu"
}
]
},
{
"type": "basic",
"from": {
"key_code": "right_command",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "right_command"
}
],
"to_if_alone": [
{
"key_code": "japanese_kana"
}
]
}
]
},
{
"description": "control + return to esc",
"manipulators": [
{
"from": {
"key_code": "return_or_enter",
"modifiers": {
"mandatory": [
"control"
]
}
},
"to": [
{
"key_code": "escape"
}
],
"type": "basic"
}
]
},
{
"description" : "shift + control + A: 行頭まで戻って選択",
"manipulators" : [
{
"type": "basic",
"from": {
"key_code": "a",
"modifiers": {
"mandatory": [
"control", "shift"
],
"optional": ["any"]
}
},
"to": [
{
"key_code": "left_arrow",
"modifiers": [
"command", "shift"
]
}
]
}
]
},
{
"description" : "option + control + V を無効化(不可視文字)",
"manipulators" : [
{
"type": "basic",
"from": {
"key_code": "v",
"modifiers": {
"mandatory": [
"option", "control"
]
}
},
"to": [
{
"key_code": "v",
"modifiers": [
"option"
]
}
]
}
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment