Skip to content

Instantly share code, notes, and snippets.

@gxfxyz
Created May 19, 2019 15:49
Show Gist options
  • Save gxfxyz/4e0348eed10f7ee0286403ef671494d0 to your computer and use it in GitHub Desktop.
Save gxfxyz/4e0348eed10f7ee0286403ef671494d0 to your computer and use it in GitHub Desktop.
Karabiner-Elements config: CapsLock / Control / Tab
{
"title": "CapsLock / Control / Tab",
"rules": [
{
"description": "Tap CapsLock (⇪) → Escape (⎋); Hold CapsLock (⇪) → Control (⌃)",
"manipulators": [
{
"from": {
"key_code": "caps_lock",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "left_control",
"lazy": true
}
],
"to_if_alone": [
{
"key_code": "escape"
}
],
"to_if_held_down": [
{
"key_code": "left_control"
}
],
"type": "basic"
}
]
},
{
"description": "Tap Control_L (⌃) → CapsLock (⇪); Hold Control_L (⌃) → Super Key (⌃⌥⌘)",
"manipulators": [
{
"from": {
"key_code": "left_control",
"modifiers": {
"optional": [
"caps_lock"
]
}
},
"to": [
{
"key_code": "left_command",
"lazy": true,
"modifiers": [
"left_control",
"left_option"
]
}
],
"to_if_alone": [
{
"hold_down_milliseconds": 100,
"key_code": "caps_lock"
}
],
"to_if_held_down": [
{
"key_code": "left_command",
"modifiers": [
"left_control",
"left_option"
]
}
],
"type": "basic"
}
]
},
{
"description": "Hold Tab (⇥) → Hyper Key (⇧⌃⌥⌘)",
"manipulators": [
{
"from": {
"key_code": "tab",
"modifiers": {
"optional": [
"caps_lock"
]
}
},
"to": [
{
"key_code": "left_shift",
"lazy": true,
"modifiers": [
"left_command",
"left_control",
"left_option"
]
}
],
"to_if_alone": [
{
"key_code": "tab"
}
],
"to_if_held_down": [
{
"key_code": "left_shift",
"modifiers": [
"left_command",
"left_control",
"left_option"
]
}
],
"type": "basic"
}
]
}
]
}
@awaken233
Copy link

Hyper Key + F → 显示 / 隐藏 Finder
Hyper Key + B → 百度搜索选中文字

求教 大佬这两个功能是如何实现的? 显示隐藏切换和🔍文字

@gxfxyz
Copy link
Author

gxfxyz commented Aug 9, 2023

@awaken233

Hyper Key + F → 显示 / 隐藏 Finder

是通过 BetterTouchTool 绑定相应快捷键来实现的:

Hyper Key + B → 百度搜索选中文字

是通过创建 Alfred Workflow 来实现的:

@awaken233
Copy link

🫰🏻非常感谢您的回答

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