====== Karabiner Elements ======
改变键盘的程序 https://karabiner-elements.pqrs.org/
在这里搜索写好的改键盘文档 https://ke-complex-modifications.pqrs.org/
搜索 “umlaut”,选择 “Change option + a/o/u to ä/ö/ü” ,然后导入到 karabiner-element 就可以了。以后就可以只用美式键盘。需要这个应用常驻内存才行。
自行更改目录文件 ~/.config/karabiner
可以用 Karabiner-EventViewer 探测当前键名,然后改为别的键。
在complex modifications 中进行复杂按键映射:
// ~/.config/karabiner/karabiner.json
// 添加一个叫 karabiner 的rule
{
"manipulators": [
{
"description": "Change kana to control+space (lang change).",
"from": {
"key_code": "japanese_kana",
"modifiers": {
"optional": ["any"]
}
},
"to": [
{
"key_code": "spacebar",
"modifiers": ["left_control"]
}
],
"type": "basic"
}
]
}