Skip to content

Instantly share code, notes, and snippets.

@Yxnt
Created December 9, 2019 03:52
Show Gist options
  • Save Yxnt/1740c493c0a66ee9d56d75346befe7ec to your computer and use it in GitHub Desktop.
Save Yxnt/1740c493c0a66ee9d56d75346befe7ec to your computer and use it in GitHub Desktop.
karabiner pc键盘映射
{
"title": "PC-Style Modifiers",
"rules": [
{
"description": "其他功能键",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "home",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "a",
"modifiers": "left_control"
}
]
},
{
"type": "basic",
"from": {
"key_code": "tab",
"modifiers": {
"mandatory": [
"left_alt"
],
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "tab",
"modifiers": "left_gui"
}
]
},
{
"type": "basic",
"from": {
"key_code": "tab",
"modifiers": {
"mandatory": [
"left_alt",
"left_shift"
],
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "tab",
"modifiers": [
"left_gui",
"left_shift"
]
}
]
},
{
"type": "basic",
"from": {
"key_code": "right_shift",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "spacebar",
"modifiers": [
"left_control"
]
}
]
}
]
},
{
"description": "修改command功能键为ctrl",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "f",
"modifiers": {
"mandatory": [
"left_control"
],
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "f",
"modifiers": "left_gui"
}
]
},
{
"type": "basic",
"from": {
"key_code": "a",
"modifiers": {
"mandatory": [
"left_control"
],
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "a",
"modifiers": "left_gui"
}
]
},
{
"type": "basic",
"from": {
"key_code": "z",
"modifiers": {
"mandatory": [
"left_control"
],
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "z",
"modifiers": "left_gui"
}
]
},
{
"type": "basic",
"from": {
"key_code": "c",
"modifiers": {
"mandatory": [
"left_control"
],
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "c",
"modifiers": "left_gui"
}
]
},
{
"type": "basic",
"from": {
"key_code": "v",
"modifiers": {
"mandatory": [
"left_control"
],
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "v",
"modifiers": "left_gui"
}
]
},
{
"type": "basic",
"from": {
"key_code": "x",
"modifiers": {
"mandatory": [
"left_control"
],
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "x",
"modifiers": "left_gui"
}
]
},
{
"type": "basic",
"from": {
"key_code": "z",
"modifiers": {
"mandatory": [
"left_control"
],
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "z",
"modifiers": "left_gui"
}
]
},
{
"type": "basic",
"from": {
"key_code": "n",
"modifiers": {
"mandatory": [
"left_control"
],
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "n",
"modifiers": "left_gui"
}
]
},
{
"type": "basic",
"from": {
"key_code": "w",
"modifiers": {
"mandatory": [
"left_control"
],
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "w",
"modifiers": "left_gui"
}
]
},
{
"type": "basic",
"from": {
"key_code": "t",
"modifiers": {
"mandatory": [
"left_control"
],
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "t",
"modifiers": "left_gui"
}
]
},
{
"type": "basic",
"from": {
"key_code": "s",
"modifiers": {
"mandatory": [
"left_control"
],
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "s",
"modifiers": "left_gui"
}
]
},
{
"type": "basic",
"from": {
"key_code": "p",
"modifiers": {
"mandatory": [
"left_control",
"left_shift"
],
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "p",
"modifiers": [
"left_gui",
"left_shift"
]
}
]
}
]
}
]
}
@Yxnt
Copy link
Author

Yxnt commented Dec 9, 2019

  1. 修改ctrl相关键位设置与windows一致
  2. 修改右侧shift键位去切换中英文

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment