Karabiner-Elements默认配置在~/.config/karabiner/karabiner.json
下
可以查看下
cat ~/.config/karabiner/karabiner.json
cp ./karabiner.json ~/.config/karabiner/karabiner.json
Home to Command Left End to Command Right
因为HHKB有Home和End键, 这里默认对齐Cmd + Left/Right
因为Right Cmd很少用到, 自定义特别的键可以多个功能键. 但是功能键很多, 所以使用功能全组合配置, 也就是 Right Command = Command + Option + Control + Shift
, 这么多键是个人都按不过来.
代码参考 https://ke-complex-modifications.pqrs.org/json/caps_lock.json 实现