Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save bidah/c42d2d1dc63f7308d73053a3a1475ee8 to your computer and use it in GitHub Desktop.
Save bidah/c42d2d1dc63f7308d73053a3a1475ee8 to your computer and use it in GitHub Desktop.
{
"title": "Change modifiers to arrows",
"rules": [
{
"description": "Change right_shift to top_arrow if pressed alone",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "right_shift",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "right_shift"
}
],
"to_if_alone": [
{
"key_code": "top_arrow"
}
]
}
]
},
{
"description": "Change right_ctrl to right_arrow if pressed alone",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "right_control",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "right_control"
}
],
"to_if_alone": [
{
"key_code": "right_arrow"
}
]
}
]
},
{
"description": "Change right_alt to down_arrow if pressed alone",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "right_alt",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "right_alt"
}
],
"to_if_alone": [
{
"key_code": "down_arrow"
}
]
}
]
},
{
"description": "Change right_command to left_arrow if pressed alone",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "right_command",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "right_command"
}
],
"to_if_alone": [
{
"key_code": "down_arrow"
}
]
}
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment