Skip to content

Instantly share code, notes, and snippets.

@Sleepful
Created May 2, 2023 23:18
Show Gist options
  • Save Sleepful/a76d5adfe10c53e004bb947a990bc3f2 to your computer and use it in GitHub Desktop.
Save Sleepful/a76d5adfe10c53e004bb947a990bc3f2 to your computer and use it in GitHub Desktop.
{
"title": "swap numbers and shift+numbers",
"rules": [
{
"description": "swap numbers and shift+numbers",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "1",
"modifiers": {
"mandatory": [
"shift"
]
}
},
"to": [
{
"key_code": "1"
}
]
},
{
"type": "basic",
"from": {
"key_code": "1"
},
"to": [
{
"key_code": "1",
"modifiers": [
"shift"
]
}
]
},
{
"type": "basic",
"from": {
"key_code": "2",
"modifiers": {
"mandatory": [
"shift"
]
}
},
"to": [
{
"key_code": "2"
}
]
},
{
"type": "basic",
"from": {
"key_code": "2"
},
"to": [
{
"key_code": "2",
"modifiers": [
"shift"
]
}
]
},
{
"type": "basic",
"from": {
"key_code": "3",
"modifiers": {
"mandatory": [
"shift"
]
}
},
"to": [
{
"key_code": "3"
}
]
},
{
"type": "basic",
"from": {
"key_code": "3"
},
"to": [
{
"key_code": "3",
"modifiers": [
"shift"
]
}
]
},
{
"type": "basic",
"from": {
"key_code": "4",
"modifiers": {
"mandatory": [
"shift"
]
}
},
"to": [
{
"key_code": "4"
}
]
},
{
"type": "basic",
"from": {
"key_code": "4"
},
"to": [
{
"key_code": "4",
"modifiers": [
"shift"
]
}
]
},
{
"type": "basic",
"from": {
"key_code": "5",
"modifiers": {
"mandatory": [
"shift"
]
}
},
"to": [
{
"key_code": "5"
}
]
},
{
"type": "basic",
"from": {
"key_code": "5"
},
"to": [
{
"key_code": "5",
"modifiers": [
"shift"
]
}
]
},
{
"type": "basic",
"from": {
"key_code": "6",
"modifiers": {
"mandatory": [
"shift"
]
}
},
"to": [
{
"key_code": "6"
}
]
},
{
"type": "basic",
"from": {
"key_code": "6"
},
"to": [
{
"key_code": "6",
"modifiers": [
"shift"
]
}
]
},
{
"type": "basic",
"from": {
"key_code": "7",
"modifiers": {
"mandatory": [
"shift"
]
}
},
"to": [
{
"key_code": "7"
}
]
},
{
"type": "basic",
"from": {
"key_code": "7"
},
"to": [
{
"key_code": "7",
"modifiers": [
"shift"
]
}
]
},
{
"type": "basic",
"from": {
"key_code": "8",
"modifiers": {
"mandatory": [
"shift"
]
}
},
"to": [
{
"key_code": "8"
}
]
},
{
"type": "basic",
"from": {
"key_code": "8"
},
"to": [
{
"key_code": "8",
"modifiers": [
"shift"
]
}
]
},
{
"type": "basic",
"from": {
"key_code": "9",
"modifiers": {
"mandatory": [
"shift"
]
}
},
"to": [
{
"key_code": "9"
}
]
},
{
"type": "basic",
"from": {
"key_code": "9"
},
"to": [
{
"key_code": "9",
"modifiers": [
"shift"
]
}
]
},
{
"type": "basic",
"from": {
"key_code": "0",
"modifiers": {
"mandatory": [
"shift"
]
}
},
"to": [
{
"key_code": "0"
}
]
},
{
"type": "basic",
"from": {
"key_code": "0"
},
"to": [
{
"key_code": "0",
"modifiers": [
"shift"
]
}
]
}
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment