学习Karabiner-Elements的第一个 demo,因为推荐的例子中过多参数,这是一个简化版。
需求:对调 optionTAB与 commandTAB,然后安装 altTAB 软件,恢复win切换任务的使用习惯。
{
"description": "Change tab",
"manipulators": [
{
"from": {
"key_code": "caps_lock",
"modifiers": {
"mandatory": "left_control"
}
},
"to":
{
"key_code": "tab",
"modifiers": ["left_control", "left_shift"]
},
"type": "basic"
},
{
"from": {
"key_code": "tab",
"modifiers": {
"mandatory": "command"
}
},
"to": {
"key_code": "tab",
"modifiers": [
"option"
]
},
"type": "basic"
},
{
"from": {
"key_code": "tab",
"modifiers": {
"mandatory": "option"
}
},
"to": {
"key_code": "tab",
"modifiers": [
"command"
]
},
"type": "basic"
}
]
}