Skip to content

Commit 9bb6df9

Browse files
committed
Add a sample Karabiner-Elements rule (debug mode)
1 parent 5cdc205 commit 9bb6df9

File tree

2 files changed

+33
-1
lines changed

2 files changed

+33
-1
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
{
2+
"title": "Right Option to Launch MoveCursorToCenterOfActiveWindow in Debug Mode",
3+
"rules": [
4+
{
5+
"description": "When the right option key is pressed alone, launch /Applications/MoveCursorToCenterOfActiveWindow.app (debug mode) in the background",
6+
"manipulators": [
7+
{
8+
"type": "basic",
9+
"from": {
10+
"key_code": "right_option",
11+
"modifiers": {
12+
"optional": [
13+
"any"
14+
]
15+
}
16+
},
17+
"to": [
18+
{
19+
"key_code": "right_option",
20+
"lazy": true
21+
}
22+
],
23+
"to_if_alone": [
24+
{
25+
"shell_command": "open -g '/Applications/MoveCursorToCenterOfActiveWindow.app' --args --debug"
26+
}
27+
]
28+
}
29+
]
30+
}
31+
]
32+
}

Karabiner-Element Rules/Right Option to Launch MoveCursorToCenterOfActiveWindow.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"title": "Right Option to Launch MoveCursorToCenterOfActiveWindow",
33
"rules": [
44
{
5-
"description": "When right option key is pressed alone, launch /Applications/MoveCursorToCenterOfActiveWindow.app in background",
5+
"description": "When the right option key is pressed alone, launch /Applications/MoveCursorToCenterOfActiveWindow.app in the background",
66
"manipulators": [
77
{
88
"type": "basic",

0 commit comments

Comments
 (0)