Skip to content

Instantly share code, notes, and snippets.

@matsuoshi
Created June 22, 2022 10:28
Show Gist options
  • Select an option

  • Save matsuoshi/1bdcddd795a3f0a90b9f3c104c289825 to your computer and use it in GitHub Desktop.

Select an option

Save matsuoshi/1bdcddd795a3f0a90b9f3c104c289825 to your computer and use it in GitHub Desktop.
{
"title": "Japanese JIS to US Keyboard: Remap Symbol Keys",
"maintainers": [
"halfwhole"
],
"rules": [
{
"description": "Japanese JIS to US Keyboard: Remap Symbol Keys",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "2",
"modifiers": {
"optional": [
"control",
"option",
"command"
],
"mandatory": [
"shift"
]
}
},
"to": [
{
"key_code": "open_bracket"
}
],
"conditions": [{
"type": "device_unless",
"identifiers": [{"vendor_id": 1452}]
}]
},
{
"type": "basic",
"from": {
"key_code": "6",
"modifiers": {
"optional": [
"control",
"option",
"command"
],
"mandatory": [
"shift"
]
}
},
"to": [
{
"key_code": "equal_sign"
}
],
"conditions": [{
"type": "device_unless",
"identifiers": [{"vendor_id": 1452}]
}]
},
{
"type": "basic",
"from": {
"key_code": "7",
"modifiers": {
"optional": [
"control",
"option",
"command"
],
"mandatory": [
"shift"
]
}
},
"to": [
{
"key_code": "6",
"modifiers": [
"left_shift"
]
}
],
"conditions": [{
"type": "device_unless",
"identifiers": [{"vendor_id": 1452}]
}]
},
{
"type": "basic",
"from": {
"key_code": "8",
"modifiers": {
"optional": [
"control",
"option",
"command"
],
"mandatory": [
"shift"
]
}
},
"to": [
{
"key_code": "quote",
"modifiers": [
"left_shift"
]
}
],
"conditions": [{
"type": "device_unless",
"identifiers": [{"vendor_id": 1452}]
}]
},
{
"type": "basic",
"from": {
"key_code": "9",
"modifiers": {
"optional": [
"control",
"option",
"command"
],
"mandatory": [
"shift"
]
}
},
"to": [
{
"key_code": "8",
"modifiers": [
"left_shift"
]
}
],
"conditions": [{
"type": "device_unless",
"identifiers": [{"vendor_id": 1452}]
}]
},
{
"type": "basic",
"from": {
"key_code": "0",
"modifiers": {
"optional": [
"control",
"option",
"command"
],
"mandatory": [
"shift"
]
}
},
"to": [
{
"key_code": "9",
"modifiers": [
"left_shift"
]
}
],
"conditions": [{
"type": "device_unless",
"identifiers": [{"vendor_id": 1452}]
}]
},
{
"type": "basic",
"from": {
"key_code": "hyphen",
"modifiers": {
"optional": [
"control",
"option",
"command"
],
"mandatory": [
"shift"
]
}
},
"to": [
{
"key_code": "international1"
}
],
"conditions": [{
"type": "device_unless",
"identifiers": [{"vendor_id": 1452}]
}]
},
{
"type": "basic",
"from": {
"key_code": "equal_sign",
"modifiers": {
"optional": [
"control",
"option",
"command"
]
}
},
"to": [
{
"key_code": "hyphen",
"modifiers": [
"left_shift"
]
}
],
"conditions": [{
"type": "device_unless",
"identifiers": [{"vendor_id": 1452}]
}]
},
{
"type": "basic",
"from": {
"key_code": "equal_sign",
"modifiers": {
"optional": [
"control",
"option",
"command"
],
"mandatory": [
"shift"
]
}
},
"to": [
{
"key_code": "semicolon",
"modifiers": [
"left_shift"
]
}
],
"conditions": [{
"type": "device_unless",
"identifiers": [{"vendor_id": 1452}]
}]
},
{
"type": "basic",
"from": {
"key_code": "international3",
"modifiers": {
"optional": [
"control",
"option",
"command"
]
}
},
"to": [
{
"key_code": "open_bracket",
"modifiers": [
"left_shift"
]
}
],
"conditions": [{
"type": "device_unless",
"identifiers": [{"vendor_id": 1452}]
}]
},
{
"type": "basic",
"from": {
"key_code": "international3",
"modifiers": {
"optional": [
"control",
"option",
"command"
],
"mandatory": [
"shift"
]
}
},
"to": [
{
"key_code": "equal_sign",
"modifiers": [
"left_shift"
]
}
],
"conditions": [{
"type": "device_unless",
"identifiers": [{"vendor_id": 1452}]
}]
},
{
"type": "basic",
"from": {
"key_code": "open_bracket",
"modifiers": {
"optional": [
"control",
"option",
"command"
]
}
},
"to": [
{
"key_code": "close_bracket"
}
],
"conditions": [{
"type": "device_unless",
"identifiers": [{"vendor_id": 1452}]
}]
},
{
"type": "basic",
"from": {
"key_code": "open_bracket",
"modifiers": {
"optional": [
"control",
"option",
"command"
],
"mandatory": [
"shift"
]
}
},
"to": [
{
"key_code": "close_bracket",
"modifiers": [
"left_shift"
]
}
],
"conditions": [{
"type": "device_unless",
"identifiers": [{"vendor_id": 1452}]
}]
},
{
"type": "basic",
"from": {
"key_code": "close_bracket",
"modifiers": {
"optional": [
"control",
"option",
"command"
]
}
},
"to": [
{
"key_code": "backslash"
}
],
"conditions": [{
"type": "device_unless",
"identifiers": [{"vendor_id": 1452}]
}]
},
{
"type": "basic",
"from": {
"key_code": "close_bracket",
"modifiers": {
"optional": [
"control",
"option",
"command"
],
"mandatory": [
"shift"
]
}
},
"to": [
{
"key_code": "backslash",
"modifiers": [
"left_shift"
]
}
],
"conditions": [{
"type": "device_unless",
"identifiers": [{"vendor_id": 1452}]
}]
},
{
"type": "basic",
"from": {
"key_code": "semicolon",
"modifiers": {
"optional": [
"control",
"option",
"command"
],
"mandatory": [
"shift"
]
}
},
"to": [
{
"key_code": "quote"
}
],
"conditions": [{
"type": "device_unless",
"identifiers": [{"vendor_id": 1452}]
}]
},
{
"type": "basic",
"from": {
"key_code": "quote",
"modifiers": {
"optional": [
"control",
"option",
"command"
]
}
},
"to": [
{
"key_code": "7",
"modifiers": [
"left_shift"
]
}
],
"conditions": [{
"type": "device_unless",
"identifiers": [{"vendor_id": 1452}]
}]
},
{
"type": "basic",
"from": {
"key_code": "quote",
"modifiers": {
"optional": [
"control",
"option",
"command"
],
"mandatory": [
"shift"
]
}
},
"to": [
{
"key_code": "2",
"modifiers": [
"left_shift"
]
}
],
"conditions": [{
"type": "device_unless",
"identifiers": [{"vendor_id": 1452}]
}]
},
{
"type": "basic",
"from": {
"key_code": "backslash",
"modifiers": {
"optional": [
"control",
"option",
"command"
]
}
},
"to": [
{
"key_code": "international3",
"modifiers": [
"left_option"
]
}
],
"conditions": [{
"type": "device_unless",
"identifiers": [{"vendor_id": 1452}]
}]
},
{
"type": "basic",
"from": {
"key_code": "backslash",
"modifiers": {
"optional": [
"control",
"option",
"command"
],
"mandatory": [
"shift"
]
}
},
"to": [
{
"key_code": "international3",
"modifiers": [
"left_shift"
]
}
],
"conditions": [{
"type": "device_unless",
"identifiers": [{"vendor_id": 1452}]
}]
}
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment