1. 打開(kāi)配置文件
終端輸入open ~/.config/karabiner后使用想要的編輯器打開(kāi)
2. 插入配置
在profiles ->complex_modifications->rules下插入
{
"description": "Press Option+Command+0 to insert Hello",
"manipulators": [
{
"from": {
"key_code": "0",
"modifiers": {
"mandatory": [
"left_option",
"left_command"
],
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "h",
"modifiers": [
"left_shift"
]
},
{
"key_code": "e"
},
{
"key_code": "l"
},
{
"key_code": "l"
},
{
"key_code": "o"
}
],
"type": "basic"
}
]
},