Created
September 23, 2019 21:05
-
-
Save Diegus83/473fc000174cc511962b93074c6f94ff to your computer and use it in GitHub Desktop.
Karabiner mod to sleep MacBook with external monitor
This file contains 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": "Diego", | |
"rules": [ | |
{ | |
"description": "Hold down left control to sleep", | |
"manipulators": [ | |
{ | |
"from": { | |
"key_code": "left_control", | |
"modifiers": { | |
"optional": [ | |
"caps_lock" | |
] | |
} | |
}, | |
"parameters": { | |
"basic.to_if_alone_timeout_milliseconds": 1900, | |
"basic.to_if_held_down_threshold_milliseconds": 2000 | |
}, | |
"to_if_alone": [ | |
{ | |
"key_code": "control" | |
} | |
], | |
"to_if_held_down": [ | |
{ | |
"shell_command": "pmset sleepnow" | |
} | |
], | |
"type": "basic" | |
} | |
] | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment