Skip to content

Instantly share code, notes, and snippets.

@OKsign
Created November 10, 2020 09:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save OKsign/71eb3c12dd379007af689f04cf97735e to your computer and use it in GitHub Desktop.
Save OKsign/71eb3c12dd379007af689f04cf97735e to your computer and use it in GitHub Desktop.
{ "title": "Rules for Karabiner-Elements | Tested Version: 12.10.0",
"rules": [
{ "description": "Hold a Key - Shortcut for Photoshop",
"manipulators": [
{"from": { "key_code": "a" },
"parameters": {"basic.to_if_alone_timeout_milliseconds": 300,
"basic.to_if_held_down_threshold_milliseconds": 500},
"to_if_alone": [
{"key_code": "a"}],
"to_if_held_down":[
{
"shell_command": "osascript -e 'run script \"Replace_Me\"'"
}],
"type": "basic",
"conditions": [
{
"type": "frontmost_application_if",
"bundle_identifiers": [
"^com\\.adobe\\.Photoshop$"
]
}
]
}
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment