何度も備忘録として見に来るけど、旧 Karabinerの設定しか書いてなくて毎回凹むので Karabiner-Elements の設定を残しておく。
json は自分で beautify して欲しい(自分には標準的な json のインデントは受け入れられない)。
主に PC 用キーボードを繋いで Windows 風に使いたい人向けの設定のつもり。
{
"title": "My Settings",
"rules":
[
{
"description": "Change left-Control(⌃) to left-Command(⌘)",
"manipulators":
[
{
"type": "basic",
"from":
{
"key_code": "left_control",
"modifiers": {"optional": "any"}
},
"to":
[
{
"key_code": "left_command"
}
]
}
]
},
{
"description": "Change Caps-lock(⇪) to left-Control(⌃) anyway",
"manipulators":
[
{
"type": "basic",
"from":
{
"key_code": "caps_lock",
"modifiers": {"optional": "any"}
},
"to":
[
{
"key_code": "left_command"
}
]
}
]
},
{
"description": "Change Home(↖) to Command(⌘) + left-arrow",
"manipulators":
[
{
"type": "basic",
"from":
{
"key_code": "home",
"modifiers": {"optional": ["any"]}
},
"to":
[
{
"key_code": "left_arrow",
"modifiers": "command"
}
]
}
]
},
{
"description": "Change End(↘) to Command(⌘) + right-arrow",
"manipulators":
[
{
"type": "basic",
"from":
{
"key_code": "end",
"modifiers": {"optional": ["any"]}
},
"to":
[
{
"key_code": "right_arrow",
"modifiers": "command"
}
]
}
]
},
{
"description": "Change Yen-sign(¥) to Backslash(\\)",
"manipulators":
[
{
"type": "basic",
"from":
{
"key_code": "international3"
},
"to":
[
{
"key_code": "international3",
"modifiers": "option"
}
]
}
]
},
{
"description": "Change Option(⌥)+Yen-sign(¥) to Yen-sign(¥)",
"manipulators":
[
{
"type": "basic",
"from":
{
"key_code": "international3",
"modifiers":
{
"mandatory": "option"
}
},
"to":
[
{
"key_code": "international3"
}
]
}
]
}
]
}