IKBC Poker和iQUNIX都是60%配列的键盘,因为我已经习惯了poker的方向键(Fn+WASD),又经常使用使用右Shift,所以iQUNIX的两种方向键方案并不太适合我。
Poker的方向键方案 F60的方向键方案
我的想法是,将F60的Alt+WASD改成方向键上下左右,研究了一下F60的说明书和驱动程序,发现好像并不能像Poker那样针对某个键进行编程。
所以我将目标转向了按键映射软件,经过搜索找到了Karabiner-Elements这款软件。
将下面的json代码保存为桌面上,假如你的文件名叫做right_option+wasd_to_arrows.json
{
"title": "Right Option + w/a/s/d to arrows",
"rules": [
{
"description": "R_Option + w/a/s/d to arrows",
"manipulators": [
{
"from": {
"key_code": "w",
"modifiers": {
"mandatory": [
"right_option"
],
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "up_arrow"
}
],
"type": "basic"
},
{
"from": {
"key_code": "a",
"modifiers": {
"mandatory": [
"right_option"
],
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "left_arrow"
}
],
"type": "basic"
},
{
"from": {
"key_code": "s",
"modifiers": {
"mandatory": [
"right_option"
],
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "down_arrow"
}
],
"type": "basic"
},
{
"from": {
"key_code": "d",
"modifiers": {
"mandatory": [
"right_option"
],
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "right_arrow"
}
],
"type": "basic"
}
]
}
]
}
然后打开终端,输入cp ~/Desktop/right_option+wasd_to_arrows.json ~/.config/karabiner/assets/complex_modifications
,然后打开软件,选择Complex Modifications
,Rules
,选择下图中的Enable
就在我写这篇文章的时候才发现按Fn+ESC
打反引号也挺别扭的,所以也改成了right_option + ESC
,json代码就不贴了,结合官方在github上开源的例子改一下就好了。
网友评论