-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathctrl9openchatgpt
60 lines (60 loc) · 2.74 KB
/
ctrl9openchatgpt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
// 问题在于 用keyboardmaestro能更好的实现这个功能,所以这个不用karabiner了
{
"description": "ctrl+9 to open chatgpt",
"manipulators": [
{
"conditions": [
{
"bundle_identifiers": [
"^com.electron.chatgpt$"
],
"type": "frontmost_application_unless"
}
],
"from": {
"key_code": "9",
"modifiers": {
"mandatory": [
"left_control"
]
}
},
"parameters": {
"basic.to_delayed_action_delay_milliseconds": 150
},
"to": [
{
"shell_command": "open -a 'ChatGPT.app'"
}
],
"type": "basic"
},
{
"conditions": [
{
"bundle_identifiers": [
"^com.electron.chatgpt$"
],
"type": "frontmost_application_if"
}
],
"from": {
"key_code": "9",
"modifiers": {
"mandatory": [
"left_control"
]
}
},
"to": [
{
"key_code": "h",
"modifiers": [
"command"
]
}
],
"type": "basic"
}
]
}