-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathkarabiner-knex.json
More file actions
72 lines (72 loc) · 1.71 KB
/
karabiner-knex.json
File metadata and controls
72 lines (72 loc) · 1.71 KB
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
{
"title": "KNEX Symbol Press-and-Hold",
"rules": [
{
"description": "Hold K to show KNEX symbol chooser (via Hammerspoon)",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "k",
"modifiers": {
"optional": ["any"]
}
},
"to_if_held_down": [
{
"shell_command": "/usr/local/bin/hs -c 'showKnexChooser()'"
}
],
"to_if_alone": [
{
"key_code": "k"
}
],
"parameters": {
"basic.to_if_held_down_threshold_milliseconds": 300
}
}
]
},
{
"description": "Option+K immediately types KNEX symbol ₭ (U+20AD)",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "k",
"modifiers": {
"mandatory": ["option"],
"optional": ["shift"]
}
},
"to": [
{
"shell_command": "osascript -e 'tell application \"System Events\" to keystroke (character id 8365)'"
}
]
}
]
},
{
"description": "Option+R immediately types RAW symbol ⋖ (U+22D6)",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "r",
"modifiers": {
"mandatory": ["option"],
"optional": ["shift"]
}
},
"to": [
{
"shell_command": "osascript -e 'tell application \"System Events\" to keystroke (character id 8918)'"
}
]
}
]
}
]
}