Skip to content

Instantly share code, notes, and snippets.

@spacelatte
Created February 20, 2020 18:03
Show Gist options
  • Save spacelatte/5235096ab5958bf53df2d4cb1d8667bf to your computer and use it in GitHub Desktop.
Save spacelatte/5235096ab5958bf53df2d4cb1d8667bf to your computer and use it in GitHub Desktop.
{
"rules": [
{
"description": "Change caps_lock key to command+control+option+shift if pressed with other keys",
"manipulators": [
{
"from": {
"key_code": "caps_lock",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "left_option",
"modifiers": [
"left_command",
"left_control"
]
}
],
"to_if_alone": [
{
"hold_down_milliseconds": 100,
"key_code": "caps_lock"
}
],
"type": "basic"
}
]
},
{
"description": "Change caps_lock key to command+control+option+shift. (Use shift+caps_lock as caps_lock)",
"manipulators": [
{
"from": {
"key_code": "caps_lock",
"modifiers": {
"mandatory": [
"shift"
],
"optional": [
"caps_lock"
]
}
},
"to": [
{
"key_code": "caps_lock"
}
],
"type": "basic"
},
{
"from": {
"key_code": "caps_lock",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "left_option",
"modifiers": [
"left_command",
"left_control"
]
}
],
"type": "basic"
}
]
}
],
"title": "mert's hyper"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment