{
"title": "F5 to dim, F6 to bright",
"rules": [
{
"manipulators": [
{
"description": "dim",
"type": "basic",
"from": {
"key_code": "f5"
},
"to": [
{
"shell_command": "/usr/local/bin/ddcctl -d 1 -b 1"
}
]
},
{
"description": "bright",
"type": "basic",
"from": {
"key_code": "f6"
},
"to": [
{
"shell_command": "/usr/local/bin/ddcctl -d 1 -b 100"
}
]
}
]
}
]
}
我已经安装了ddctl,它可以通过传递一个百分比值来控制亮度 - https://github.com/kfix/ddcctl。 你可以查看文档以编写类似这样的复杂修改:https://pqrs.org/osx/karabiner/json.html。注意:您需要确保这不是 macOS 已经使用的快捷方式。