From e4ee6c5240e53ccf002bf009102fcc04dcfec2e5 Mon Sep 17 00:00:00 2001 From: Tom Duncalf Date: Mon, 4 Feb 2019 19:21:20 +0000 Subject: [PATCH] Change json to use virtual modifiers This change allows the script to work alongside Sticky Keys without interfering --- mirrorboard-mac.json | 1981 ++++++++++++++++++++++-------------------- 1 file changed, 1043 insertions(+), 938 deletions(-) diff --git a/mirrorboard-mac.json b/mirrorboard-mac.json index e4db6a4..52849bd 100644 --- a/mirrorboard-mac.json +++ b/mirrorboard-mac.json @@ -1,944 +1,1049 @@ { "title": "mirrorboard-mac", "rules": [ - { - "description": "A one-handed layout keyboard layout. Hold spacebar to mirror the keyboard layout so that both sides of the keyboard can be intuitively typed by either hand on its own.", - "manipulators": [ - { - "from": { - "key_code": "spacebar", - "modifiers": { - "optional": [ - "any" - ] - } - }, - "to": [ - { - "key_code": "right_control" - } - ], - "to_if_alone": [ - { - "key_code": "spacebar" - } - ], - "type": "basic" - }, - { - "from": { - "key_code": "delete_or_backspace", - "modifiers": { - "mandatory": [ - "right_control" - ], - "optional": [ - "any" - ] - } - }, - "to": [ - { - "key_code": "grave_accent_and_tilde" - } - ], - "type": "basic" - }, - { - "from": { - "key_code": "grave_accent_and_tilde", - "modifiers": { - "mandatory": [ - "right_control" - ], - "optional": [ - "any" - ] - } - }, - "to": [ - { - "key_code": "delete_or_backspace" - } - ], - "type": "basic" - }, - - { - "from": { - "key_code": "1", - "modifiers": { - "mandatory": [ - "right_control" - ], - "optional": [ - "any" - ] - } - }, - "to": [ - { - "key_code": "equal_sign" - } - ], - "type": "basic" - }, - { - "from": { - "key_code": "2", - "modifiers": { - "mandatory": [ - "right_control" - ], - "optional": [ - "any" - ] - } - }, - "to": [ - { - "key_code": "hyphen" - } - ], - "type": "basic" - }, - { - "from": { - "key_code": "3", - "modifiers": { - "mandatory": [ - "right_control" - ], - "optional": [ - "any" - ] - } - }, - "to": [ - { - "key_code": "0" - } - ], - "type": "basic" - }, - { - "from": { - "key_code": "4", - "modifiers": { - "mandatory": [ - "right_control" - ], - "optional": [ - "any" - ] - } - }, - "to": [ - { - "key_code": "9" - } - ], - "type": "basic" - }, - { - "from": { - "key_code": "5", - "modifiers": { - "mandatory": [ - "right_control" - ], - "optional": [ - "any" - ] - } - }, - "to": [ - { - "key_code": "8" - } - ], - "type": "basic" - }, - { - "from": { - "key_code": "6", - "modifiers": { - "mandatory": [ - "right_control" - ], - "optional": [ - "any" - ] - } - }, - "to": [ - { - "key_code": "7" - } - ], - "type": "basic" - }, - { - "from": { - "key_code": "7", - "modifiers": { - "mandatory": [ - "right_control" - ], - "optional": [ - "any" - ] - } - }, - "to": [ - { - "key_code": "6" - } - ], - "type": "basic" - }, - { - "from": { - "key_code": "8", - "modifiers": { - "mandatory": [ - "right_control" - ], - "optional": [ - "any" - ] - } - }, - "to": [ - { - "key_code": "5" - } - ], - "type": "basic" - }, - { - "from": { - "key_code": "9", - "modifiers": { - "mandatory": [ - "right_control" - ], - "optional": [ - "any" - ] - } - }, - "to": [ - { - "key_code": "4" - } - ], - "type": "basic" - }, - { - "from": { - "key_code": "0", - "modifiers": { - "mandatory": [ - "right_control" - ], - "optional": [ - "any" - ] - } - }, - "to": [ - { - "key_code": "3" - } - ], - "type": "basic" - }, - { - "from": { - "key_code": "equal_sign", - "modifiers": { - "mandatory": [ - "right_control" - ], - "optional": [ - "any" - ] - } - }, - "to": [ - { - "key_code": "1" - } - ], - "type": "basic" - }, - { - "from": { - "key_code": "hyphen", - "modifiers": { - "mandatory": [ - "right_control" - ], - "optional": [ - "any" - ] - } - }, - "to": [ - { - "key_code": "2" - } - ], - "type": "basic" - }, - { - "from": { - "key_code": "tab", - "modifiers": { - "mandatory": [ - "right_control" - ], - "optional": [ - "any" - ] - } - }, - "to": [ - { - "key_code": "open_bracket" - } - ], - "type": "basic" - }, - { - "from": { - "key_code": "q", - "modifiers": { - "mandatory": [ - "right_control" - ], - "optional": [ - "any" - ] - } - }, - "to": [ - { - "key_code": "p" - } - ], - "type": "basic" - }, - { - "from": { - "key_code": "w", - "modifiers": { - "mandatory": [ - "right_control" - ], - "optional": [ - "any" - ] - } - }, - "to": [ - { - "key_code": "o" - } - ], - "type": "basic" - }, - { - "from": { - "key_code": "e", - "modifiers": { - "mandatory": [ - "right_control" - ], - "optional": [ - "any" - ] - } - }, - "to": [ - { - "key_code": "i" - } - ], - "type": "basic" - }, - { - "from": { - "key_code": "r", - "modifiers": { - "mandatory": [ - "right_control" - ], - "optional": [ - "any" - ] - } - }, - "to": [ - { - "key_code": "u" - } - ], - "type": "basic" - }, - { - "from": { - "key_code": "t", - "modifiers": { - "mandatory": [ - "right_control" - ], - "optional": [ - "any" - ] - } - }, - "to": [ - { - "key_code": "y" - } - ], - "type": "basic" - }, - { - "from": { - "key_code": "y", - "modifiers": { - "mandatory": [ - "right_control" - ], - "optional": [ - "any" - ] - } - }, - "to": [ - { - "key_code": "t" - } - ], - "type": "basic" - }, - { - "from": { - "key_code": "u", - "modifiers": { - "mandatory": [ - "right_control" - ], - "optional": [ - "any" - ] - } - }, - "to": [ - { - "key_code": "r" - } - ], - "type": "basic" - }, - { - "from": { - "key_code": "i", - "modifiers": { - "mandatory": [ - "right_control" - ], - "optional": [ - "any" - ] - } - }, - "to": [ - { - "key_code": "e" - } - ], - "type": "basic" - }, - { - "from": { - "key_code": "o", - "modifiers": { - "mandatory": [ - "right_control" - ], - "optional": [ - "any" - ] - } - }, - "to": [ - { - "key_code": "w" - } - ], - "type": "basic" - }, - { - "from": { - "key_code": "p", - "modifiers": { - "mandatory": [ - "right_control" - ], - "optional": [ - "any" - ] - } - }, - "to": [ - { - "key_code": "q" - } - ], - "type": "basic" - }, - { - "from": { - "key_code": "open_bracket", - "modifiers": { - "mandatory": [ - "right_control" - ], - "optional": [ - "any" - ] - } - }, - "to": [ - { - "key_code": "tab" - } - ], - "type": "basic" - }, - { - "from": { - "key_code": "a", - "modifiers": { - "mandatory": [ - "right_control" - ], - "optional": [ - "any" - ] - } - }, - "to": [ - { - "key_code": "semicolon" - } - ], - "type": "basic" - }, - { - "from": { - "key_code": "s", - "modifiers": { - "mandatory": [ - "right_control" - ], - "optional": [ - "any" - ] - } - }, - "to": [ - { - "key_code": "l" - } - ], - "type": "basic" - }, - { - "from": { - "key_code": "d", - "modifiers": { - "mandatory": [ - "right_control" - ], - "optional": [ - "any" - ] - } - }, - "to": [ - { - "key_code": "k" - } - ], - "type": "basic" - }, - { - "from": { - "key_code": "f", - "modifiers": { - "mandatory": [ - "right_control" - ], - "optional": [ - "any" - ] - } - }, - "to": [ - { - "key_code": "j" - } - ], - "type": "basic" - }, - { - "from": { - "key_code": "g", - "modifiers": { - "mandatory": [ - "right_control" - ], - "optional": [ - "any" - ] - } - }, - "to": [ - { - "key_code": "h" - } - ], - "type": "basic" - }, - { - "from": { - "key_code": "h", - "modifiers": { - "mandatory": [ - "right_control" - ], - "optional": [ - "any" - ] - } - }, - "to": [ - { - "key_code": "g" - } - ], - "type": "basic" - }, - { - "from": { - "key_code": "j", - "modifiers": { - "mandatory": [ - "right_control" - ], - "optional": [ - "any" - ] - } - }, - "to": [ - { - "key_code": "f" - } - ], - "type": "basic" - }, - { - "from": { - "key_code": "k", - "modifiers": { - "mandatory": [ - "right_control" - ], - "optional": [ - "any" - ] - } - }, - "to": [ - { - "key_code": "d" - } - ], - "type": "basic" - }, - { - "from": { - "key_code": "l", - "modifiers": { - "mandatory": [ - "right_control" - ], - "optional": [ - "any" - ] - } - }, - "to": [ - { - "key_code": "s" - } - ], - "type": "basic" - }, - { - "from": { - "key_code": "semicolon", - "modifiers": { - "mandatory": [ - "right_control" - ], - "optional": [ - "any" - ] - } - }, - "to": [ - { - "key_code": "a" - } - ], - "type": "basic" - }, - { - "from": { - "key_code": "return_or_enter", - "modifiers": { - "mandatory": [ - "right_control" - ], - "optional": [ - "any" - ] - } - }, - "to": [ - { - "key_code": "caps_lock" - } - ], - "type": "basic" - }, - { - "from": { - "key_code": "caps_lock", - "modifiers": { - "mandatory": [ - "right_control" - ], - "optional": [ - "any" - ] - } - }, - "to": [ - { - "key_code": "return_or_enter" - } - ], - "type": "basic" - }, - { - "from": { - "key_code": "z", - "modifiers": { - "mandatory": [ - "right_control" - ], - "optional": [ - "any" - ] - } - }, - "to": [ - { - "key_code": "slash" - } - ], - "type": "basic" - }, - { - "from": { - "key_code": "x", - "modifiers": { - "mandatory": [ - "right_control" - ], - "optional": [ - "any" - ] - } - }, - "to": [ - { - "key_code": "period" - } - ], - "type": "basic" - }, - { - "from": { - "key_code": "c", - "modifiers": { - "mandatory": [ - "right_control" - ], - "optional": [ - "any" - ] - } - }, - "to": [ - { - "key_code": "comma" - } - ], - "type": "basic" - }, - { - "from": { - "key_code": "v", - "modifiers": { - "mandatory": [ - "right_control" - ], - "optional": [ - "any" - ] - } - }, - "to": [ - { - "key_code": "m" - } - ], - "type": "basic" - }, - { - "from": { - "key_code": "b", - "modifiers": { - "mandatory": [ - "right_control" - ], - "optional": [ - "any" - ] - } - }, - "to": [ - { - "key_code": "n" - } - ], - "type": "basic" - }, - { - "from": { - "key_code": "n", - "modifiers": { - "mandatory": [ - "right_control" - ], - "optional": [ - "any" - ] - } - }, - "to": [ - { - "key_code": "b" - } - ], - "type": "basic" - }, - { - "from": { - "key_code": "m", - "modifiers": { - "mandatory": [ - "right_control" - ], - "optional": [ - "any" - ] - } - }, - "to": [ - { - "key_code": "v" - } - ], - "type": "basic" - }, - { - "from": { - "key_code": "comma", - "modifiers": { - "mandatory": [ - "right_control" - ], - "optional": [ - "any" - ] - } - }, - "to": [ - { - "key_code": "c" - } - ], - "type": "basic" - }, - { - "from": { - "key_code": "period", - "modifiers": { - "mandatory": [ - "right_control" - ], - "optional": [ - "any" - ] - } - }, - "to": [ - { - "key_code": "x" - } - ], - "type": "basic" - }, - { - "from": { - "key_code": "slash", - "modifiers": { - "mandatory": [ - "right_control" - ], - "optional": [ - "any" - ] - } - }, - "to": [ - { - "key_code": "z" - } - ], - "type": "basic" + { + "description": "A one-handed layout keyboard layout. Hold spacebar to mirror the keyboard layout so that both sides of the keyboard can be intuitively typed by either hand on its own.", + "manipulators": [ + { + "from": { + "key_code": "spacebar", + "modifiers": { + "optional": ["any"] + } + }, + "to": [ + { + "set_variable": { + "name": "mirror", + "value": 1 } - ] - } + } + ], + "to_after_key_up": [ + { + "set_variable": { + "name": "mirror", + "value": 0 + } + } + ], + "to_if_alone": [ + { + "key_code": "spacebar" + } + ], + "type": "basic" + }, + { + "from": { + "key_code": "delete_or_backspace", + "modifiers": { + "optional": ["any"] + } + }, + "to": [ + { + "key_code": "grave_accent_and_tilde" + } + ], + "conditions": [ + { + "type": "variable_if", + "name": "mirror", + "value": 1 + } + ], + "type": "basic" + }, + { + "from": { + "key_code": "grave_accent_and_tilde", + "modifiers": { + "optional": ["any"] + } + }, + "to": [ + { + "key_code": "delete_or_backspace" + } + ], + "conditions": [ + { + "type": "variable_if", + "name": "mirror", + "value": 1 + } + ], + "type": "basic" + }, + + { + "from": { + "key_code": "1", + "modifiers": { + "optional": ["any"] + } + }, + "to": [ + { + "key_code": "equal_sign" + } + ], + "conditions": [ + { + "type": "variable_if", + "name": "mirror", + "value": 1 + } + ], + "type": "basic" + }, + { + "from": { + "key_code": "2", + "modifiers": { + "optional": ["any"] + } + }, + "to": [ + { + "key_code": "hyphen" + } + ], + "conditions": [ + { + "type": "variable_if", + "name": "mirror", + "value": 1 + } + ], + "type": "basic" + }, + { + "from": { + "key_code": "3", + "modifiers": { + "optional": ["any"] + } + }, + "to": [ + { + "key_code": "0" + } + ], + "conditions": [ + { + "type": "variable_if", + "name": "mirror", + "value": 1 + } + ], + "type": "basic" + }, + { + "from": { + "key_code": "4", + "modifiers": { + "optional": ["any"] + } + }, + "to": [ + { + "key_code": "9" + } + ], + "conditions": [ + { + "type": "variable_if", + "name": "mirror", + "value": 1 + } + ], + "type": "basic" + }, + { + "from": { + "key_code": "5", + "modifiers": { + "optional": ["any"] + } + }, + "to": [ + { + "key_code": "8" + } + ], + "conditions": [ + { + "type": "variable_if", + "name": "mirror", + "value": 1 + } + ], + "type": "basic" + }, + { + "from": { + "key_code": "6", + "modifiers": { + "optional": ["any"] + } + }, + "to": [ + { + "key_code": "7" + } + ], + "conditions": [ + { + "type": "variable_if", + "name": "mirror", + "value": 1 + } + ], + "type": "basic" + }, + { + "from": { + "key_code": "7", + "modifiers": { + "optional": ["any"] + } + }, + "to": [ + { + "key_code": "6" + } + ], + "conditions": [ + { + "type": "variable_if", + "name": "mirror", + "value": 1 + } + ], + "type": "basic" + }, + { + "from": { + "key_code": "8", + "modifiers": { + "optional": ["any"] + } + }, + "to": [ + { + "key_code": "5" + } + ], + "conditions": [ + { + "type": "variable_if", + "name": "mirror", + "value": 1 + } + ], + "type": "basic" + }, + { + "from": { + "key_code": "9", + "modifiers": { + "optional": ["any"] + } + }, + "to": [ + { + "key_code": "4" + } + ], + "conditions": [ + { + "type": "variable_if", + "name": "mirror", + "value": 1 + } + ], + "type": "basic" + }, + { + "from": { + "key_code": "0", + "modifiers": { + "optional": ["any"] + } + }, + "to": [ + { + "key_code": "3" + } + ], + "conditions": [ + { + "type": "variable_if", + "name": "mirror", + "value": 1 + } + ], + "type": "basic" + }, + { + "from": { + "key_code": "equal_sign", + "modifiers": { + "optional": ["any"] + } + }, + "to": [ + { + "key_code": "1" + } + ], + "conditions": [ + { + "type": "variable_if", + "name": "mirror", + "value": 1 + } + ], + "type": "basic" + }, + { + "from": { + "key_code": "hyphen", + "modifiers": { + "optional": ["any"] + } + }, + "to": [ + { + "key_code": "2" + } + ], + "conditions": [ + { + "type": "variable_if", + "name": "mirror", + "value": 1 + } + ], + "type": "basic" + }, + { + "from": { + "key_code": "tab", + "modifiers": { + "optional": ["any"] + } + }, + "to": [ + { + "key_code": "open_bracket" + } + ], + "conditions": [ + { + "type": "variable_if", + "name": "mirror", + "value": 1 + } + ], + "type": "basic" + }, + { + "from": { + "key_code": "q", + "modifiers": { + "optional": ["any"] + } + }, + "to": [ + { + "key_code": "p" + } + ], + "conditions": [ + { + "type": "variable_if", + "name": "mirror", + "value": 1 + } + ], + "type": "basic" + }, + { + "from": { + "key_code": "w", + "modifiers": { + "optional": ["any"] + } + }, + "to": [ + { + "key_code": "o" + } + ], + "conditions": [ + { + "type": "variable_if", + "name": "mirror", + "value": 1 + } + ], + "type": "basic" + }, + { + "from": { + "key_code": "e", + "modifiers": { + "optional": ["any"] + } + }, + "to": [ + { + "key_code": "i" + } + ], + "conditions": [ + { + "type": "variable_if", + "name": "mirror", + "value": 1 + } + ], + "type": "basic" + }, + { + "from": { + "key_code": "r", + "modifiers": { + "optional": ["any"] + } + }, + "to": [ + { + "key_code": "u" + } + ], + "conditions": [ + { + "type": "variable_if", + "name": "mirror", + "value": 1 + } + ], + "type": "basic" + }, + { + "from": { + "key_code": "t", + "modifiers": { + "optional": ["any"] + } + }, + "to": [ + { + "key_code": "y" + } + ], + "conditions": [ + { + "type": "variable_if", + "name": "mirror", + "value": 1 + } + ], + "type": "basic" + }, + { + "from": { + "key_code": "y", + "modifiers": { + "optional": ["any"] + } + }, + "to": [ + { + "key_code": "t" + } + ], + "conditions": [ + { + "type": "variable_if", + "name": "mirror", + "value": 1 + } + ], + "type": "basic" + }, + { + "from": { + "key_code": "u", + "modifiers": { + "optional": ["any"] + } + }, + "to": [ + { + "key_code": "r" + } + ], + "conditions": [ + { + "type": "variable_if", + "name": "mirror", + "value": 1 + } + ], + "type": "basic" + }, + { + "from": { + "key_code": "i", + "modifiers": { + "optional": ["any"] + } + }, + "to": [ + { + "key_code": "e" + } + ], + "conditions": [ + { + "type": "variable_if", + "name": "mirror", + "value": 1 + } + ], + "type": "basic" + }, + { + "from": { + "key_code": "o", + "modifiers": { + "optional": ["any"] + } + }, + "to": [ + { + "key_code": "w" + } + ], + "conditions": [ + { + "type": "variable_if", + "name": "mirror", + "value": 1 + } + ], + "type": "basic" + }, + { + "from": { + "key_code": "p", + "modifiers": { + "optional": ["any"] + } + }, + "to": [ + { + "key_code": "q" + } + ], + "conditions": [ + { + "type": "variable_if", + "name": "mirror", + "value": 1 + } + ], + "type": "basic" + }, + { + "from": { + "key_code": "open_bracket", + "modifiers": { + "optional": ["any"] + } + }, + "to": [ + { + "key_code": "tab" + } + ], + "conditions": [ + { + "type": "variable_if", + "name": "mirror", + "value": 1 + } + ], + "type": "basic" + }, + { + "from": { + "key_code": "a", + "modifiers": { + "optional": ["any"] + } + }, + "to": [ + { + "key_code": "semicolon" + } + ], + "conditions": [ + { + "type": "variable_if", + "name": "mirror", + "value": 1 + } + ], + "type": "basic" + }, + { + "from": { + "key_code": "s", + "modifiers": { + "optional": ["any"] + } + }, + "to": [ + { + "key_code": "l" + } + ], + "conditions": [ + { + "type": "variable_if", + "name": "mirror", + "value": 1 + } + ], + "type": "basic" + }, + { + "from": { + "key_code": "d", + "modifiers": { + "optional": ["any"] + } + }, + "to": [ + { + "key_code": "k" + } + ], + "conditions": [ + { + "type": "variable_if", + "name": "mirror", + "value": 1 + } + ], + "type": "basic" + }, + { + "from": { + "key_code": "f", + "modifiers": { + "optional": ["any"] + } + }, + "to": [ + { + "key_code": "j" + } + ], + "conditions": [ + { + "type": "variable_if", + "name": "mirror", + "value": 1 + } + ], + "type": "basic" + }, + { + "from": { + "key_code": "g", + "modifiers": { + "optional": ["any"] + } + }, + "to": [ + { + "key_code": "h" + } + ], + "conditions": [ + { + "type": "variable_if", + "name": "mirror", + "value": 1 + } + ], + "type": "basic" + }, + { + "from": { + "key_code": "h", + "modifiers": { + "optional": ["any"] + } + }, + "to": [ + { + "key_code": "g" + } + ], + "conditions": [ + { + "type": "variable_if", + "name": "mirror", + "value": 1 + } + ], + "type": "basic" + }, + { + "from": { + "key_code": "j", + "modifiers": { + "optional": ["any"] + } + }, + "to": [ + { + "key_code": "f" + } + ], + "conditions": [ + { + "type": "variable_if", + "name": "mirror", + "value": 1 + } + ], + "type": "basic" + }, + { + "from": { + "key_code": "k", + "modifiers": { + "optional": ["any"] + } + }, + "to": [ + { + "key_code": "d" + } + ], + "conditions": [ + { + "type": "variable_if", + "name": "mirror", + "value": 1 + } + ], + "type": "basic" + }, + { + "from": { + "key_code": "l", + "modifiers": { + "optional": ["any"] + } + }, + "to": [ + { + "key_code": "s" + } + ], + "conditions": [ + { + "type": "variable_if", + "name": "mirror", + "value": 1 + } + ], + "type": "basic" + }, + { + "from": { + "key_code": "semicolon", + "modifiers": { + "optional": ["any"] + } + }, + "to": [ + { + "key_code": "a" + } + ], + "conditions": [ + { + "type": "variable_if", + "name": "mirror", + "value": 1 + } + ], + "type": "basic" + }, + { + "from": { + "key_code": "return_or_enter", + "modifiers": { + "optional": ["any"] + } + }, + "to": [ + { + "key_code": "caps_lock" + } + ], + "conditions": [ + { + "type": "variable_if", + "name": "mirror", + "value": 1 + } + ], + "type": "basic" + }, + { + "from": { + "key_code": "caps_lock", + "modifiers": { + "optional": ["any"] + } + }, + "to": [ + { + "key_code": "return_or_enter" + } + ], + "conditions": [ + { + "type": "variable_if", + "name": "mirror", + "value": 1 + } + ], + "type": "basic" + }, + { + "from": { + "key_code": "z", + "modifiers": { + "optional": ["any"] + } + }, + "to": [ + { + "key_code": "slash" + } + ], + "conditions": [ + { + "type": "variable_if", + "name": "mirror", + "value": 1 + } + ], + "type": "basic" + }, + { + "from": { + "key_code": "x", + "modifiers": { + "optional": ["any"] + } + }, + "to": [ + { + "key_code": "period" + } + ], + "conditions": [ + { + "type": "variable_if", + "name": "mirror", + "value": 1 + } + ], + "type": "basic" + }, + { + "from": { + "key_code": "c", + "modifiers": { + "optional": ["any"] + } + }, + "to": [ + { + "key_code": "comma" + } + ], + "conditions": [ + { + "type": "variable_if", + "name": "mirror", + "value": 1 + } + ], + "type": "basic" + }, + { + "from": { + "key_code": "v", + "modifiers": { + "optional": ["any"] + } + }, + "to": [ + { + "key_code": "m" + } + ], + "conditions": [ + { + "type": "variable_if", + "name": "mirror", + "value": 1 + } + ], + "type": "basic" + }, + { + "from": { + "key_code": "b", + "modifiers": { + "optional": ["any"] + } + }, + "to": [ + { + "key_code": "n" + } + ], + "conditions": [ + { + "type": "variable_if", + "name": "mirror", + "value": 1 + } + ], + "type": "basic" + }, + { + "from": { + "key_code": "n", + "modifiers": { + "optional": ["any"] + } + }, + "to": [ + { + "key_code": "b" + } + ], + "conditions": [ + { + "type": "variable_if", + "name": "mirror", + "value": 1 + } + ], + "type": "basic" + }, + { + "from": { + "key_code": "m", + "modifiers": { + "optional": ["any"] + } + }, + "to": [ + { + "key_code": "v" + } + ], + "conditions": [ + { + "type": "variable_if", + "name": "mirror", + "value": 1 + } + ], + "type": "basic" + }, + { + "from": { + "key_code": "comma", + "modifiers": { + "optional": ["any"] + } + }, + "to": [ + { + "key_code": "c" + } + ], + "conditions": [ + { + "type": "variable_if", + "name": "mirror", + "value": 1 + } + ], + "type": "basic" + }, + { + "from": { + "key_code": "period", + "modifiers": { + "optional": ["any"] + } + }, + "to": [ + { + "key_code": "x" + } + ], + "conditions": [ + { + "type": "variable_if", + "name": "mirror", + "value": 1 + } + ], + "type": "basic" + }, + { + "from": { + "key_code": "slash", + "modifiers": { + "optional": ["any"] + } + }, + "to": [ + { + "key_code": "z" + } + ], + "conditions": [ + { + "type": "variable_if", + "name": "mirror", + "value": 1 + } + ], + "type": "basic" + } + ] + } ] }