Skip to content

Instantly share code, notes, and snippets.

@joshwget
Last active February 19, 2018 01:54
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 joshwget/83fd47d1bc2a3bcbfe90b11dcbf03b57 to your computer and use it in GitHub Desktop.
Save joshwget/83fd47d1bc2a3bcbfe90b11dcbf03b57 to your computer and use it in GitHub Desktop.
{
"title": "Tapping modifier-keys produces a f-key.",
"rules": [
{
"description": "Press left_shift alone produces F12",
"manipulators": [
{
"type": "basic",
"from": <%= from("left_shift", [], ["any"]) %>,
"to": <%= to([["left_shift"]]) %>,
"to_if_alone": <%= to([["f12"]]) %>
}
]
},
{
"description": "Press left_control alone produces F13",
"manipulators": [
{
"type": "basic",
"from": <%= from("left_control", [], ["any"]) %>,
"to": <%= to([["left_control"]]) %>,
"to_if_alone": <%= to([["f13"]]) %>
}
]
},
{
"description": "Press left_command alone produces F3",
"manipulators": [
{
"type": "basic",
"from": <%= from("left_command", [], ["any"]) %>,
"to": <%= to([["left_command"]]) %>,
"to_if_alone": <%= to([["f3"]]) %>
}
]
},
{
"description": "Press left_option alone produces F15",
"manipulators": [
{
"type": "basic",
"from": <%= from("left_option", [], ["any"]) %>,
"to": <%= to([["left_option"]]) %>,
"to_if_alone": <%= to([["f15"]]) %>
}
]
},
{
"description": "Press right_control alone produces F16",
"manipulators": [
{
"type": "basic",
"from": <%= from("right_control", [], ["any"]) %>,
"to": <%= to([["right_control"]]) %>,
"to_if_alone": <%= to([["f16"]]) %>
}
]
},
{
"description": "Press right_command alone produces F17",
"manipulators": [
{
"type": "basic",
"from": <%= from("right_command", [], ["any"]) %>,
"to": <%= to([["right_command"]]) %>,
"to_if_alone": <%= to([["f17"]]) %>
}
]
},
{
"description": "Press right_alt alone produces F18",
"manipulators": [
{
"type": "basic",
"from": <%= from("right_alt", [], ["any"]) %>,
"to": <%= to([["right_alt"]]) %>,
"to_if_alone": <%= to([["f18"]]) %>
}
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment