Skip to content

Instantly share code, notes, and snippets.

@permil
Last active June 1, 2021 08:03
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save permil/ed5a66f7e0cb712b0a9c03532530b9dd to your computer and use it in GitHub Desktop.
Save permil/ed5a66f7e0cb712b0a9c03532530b9dd to your computer and use it in GitHub Desktop.
Capture screen by PrintScreen (on Mac with Karabiner)
{
"description": "Capture entire screen by PrintScreen",
"manipulators": [
{
"from": {
"key_code": "print_screen"
},
"to": [
{
"key_code": "3",
"modifiers": [
"left_command",
"left_shift"
]
}
],
"type": "basic"
}
]
},
{
"description": "Capture a window by Alt+PrintScreen",
"manipulators": [
{
"from": {
"key_code": "print_screen",
"modifiers": {
"mandatory": [
"left_option"
]
}
},
"parameters": {
"basic.to_delayed_action_delay_milliseconds": 50
},
"to": [
{
"key_code": "4",
"modifiers": [
"left_command",
"left_shift"
]
}
],
"to_delayed_action": {
"to_if_invoked": [
{
"key_code": "spacebar"
}
]
},
"type": "basic"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment