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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
|
{
"title": "fn twice -> change input source / fn hold -> iterm",
"author": "Ramiro Garcia (https://github.com/ranemirusG)",
"rules": [
{
"description": "fn + ` -> iTerm",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": 53,
"modifiers": { "mandatory": ["fn"] }
},
"to": [{ "shell_command": "open '/Applications/iTerm.app'" }]
}
]
},
{
"description": "Press twice fn to change input source & otherwise held_down and open iterm",
"manipulators": [
{
"conditions": [
{
"type": "variable_if",
"name": "fn pressed",
"value": 1
}
],
"type": "basic",
"from": {
"key_code": "fn",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"repeat": false,
"key_code": "spacebar",
"modifiers": ["left_control", "left_alt"],
"lazy": true
}
]
},
{
"type": "basic",
"from": {
"key_code": "fn",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"set_variable": {
"name": "fn pressed",
"value": 1
}
}
],
"to_if_held_down": [
{
"key_code": "fn"
}
],
"parameters": {
"basic.to_if_held_down_threshold_milliseconds": 0
},
"to_delayed_action": {
"to_if_invoked": [
{
"set_variable": {
"name": "fn pressed",
"value": 0
}
}
],
"to_if_canceled": [
{
"set_variable": {
"name": "fn pressed",
"value": 0
}
}
]
}
}
]
}
]
}
|