Created
August 17, 2023 03:09
-
-
Save exoego/d4d5395baabb840a4aca7dcedad67778 to your computer and use it in GitHub Desktop.
Karabiner-elements long press (long hold) example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. Put this file `~/.config/karabiner/assets/complex_modifications` and edit | |
2. Open Karabiner-Elements settings | |
3. Open "Complex Modifications" | |
4. Click "Add rule" | |
5. Enable "Demo > Control + R long press" | |
6. Test it (Hold `Control + R`) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"title": "Demo", | |
"rules": [ | |
{ | |
"description": "Control + R long press", | |
"manipulators": [ | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "r", | |
"modifiers": { | |
"mandatory": [ | |
"control" | |
] | |
} | |
}, | |
"parameters": { | |
"basic.to_if_alone_timeout_milliseconds": 2000, | |
"basic.to_if_held_down_threshold_milliseconds": 2000 | |
}, | |
"to_if_alone": [ | |
{ | |
"key_code": "r" | |
} | |
], | |
"to_if_held_down": [ | |
{ | |
"shell_command": "open -a 'terminal.app'" | |
} | |
] | |
} | |
] | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment