HHKB Lite2 修改键位

2个月前入了Mac版的HHKB Lite2的外置键盘,作为Mac下外置的入门键盘。但使用起来略感键位使用的不方便。因为习惯了PC的键位,所以需要针对自己的使用习惯重新定制HHKB Lite2的键位映射。大概GG搜索了一下,找到了Karabiner这个软件。一开始并没有抱着折腾的心态,只想网上找个东西抄抄改改就算了。但好像确实没找到太合适的。于是自己撸了一把,总体感觉还是满意。基本上几个PC的键位都对应上了。下面是我自己详细的Karabiner的配置,贴出来希望对大家有用:

<?xml version="1.0"?>
<root>
    <item>
        <name>HHKB Lite2 KeyBoard</name>
        <identifier>remap.pc_to_mac</identifier>
        <autogen>
            __KeyToKey__
            KeyCode::KEY_6, ModifierFlag::SHIFT_L,
            KeyCode::EQUAL
        </autogen>
        <autogen>
            __KeyToKey__
            KeyCode::KEY_7, ModifierFlag::SHIFT_L,
            KeyCode::KEY_6, ModifierFlag::SHIFT_L
        </autogen>
        <autogen>
            __KeyToKey__
            KeyCode::KEY_8, ModifierFlag::SHIFT_L,
            KeyCode::QUOTE, ModifierFlag::SHIFT_L
        </autogen>
        <autogen>
            __KeyToKey__
            KeyCode::KEY_9, ModifierFlag::SHIFT_L,
            KeyCode::KEY_8, ModifierFlag::SHIFT_L
        </autogen>
        <autogen>
            __KeyToKey__
            KeyCode::KEY_0, ModifierFlag::SHIFT_L,
            KeyCode::KEY_9, ModifierFlag::SHIFT_L
        </autogen>
        <autogen>
            __KeyToKey__
            KeyCode::MINUS, ModifierFlag::SHIFT_L,
            KeyCode::JIS_UNDERSCORE, ModifierFlag::SHIFT_L
        </autogen>
        <autogen>
            __KeyToKey__
            KeyCode::KEY_2, ModifierFlag::SHIFT_L,
            KeyCode::BRACKET_LEFT
        </autogen>
        <autogen>
            __KeyToKey__
            KeyCode::SEMICOLON, ModifierFlag::SHIFT_L,
            KeyCode::QUOTE
        </autogen>
        <autogen>
            __KeyToKey__
            KeyCode::QUOTE,
            KeyCode::KEY_6, ModifierFlag::SHIFT_L
        </autogen>
        <autogen>
            __KeyToKey__
            KeyCode::EQUAL, ModifierFlag::SHIFT_L,
            KeyCode::SEMICOLON, ModifierFlag::SHIFT_L
        </autogen>
        <autogen>
            __KeyToKey__
            KeyCode::EQUAL,
            KeyCode::MINUS, ModifierFlag::SHIFT_L
        </autogen>
        <autogen>
            __KeyToKey__
            KeyCode::BRACKET_LEFT,
            KeyCode::BRACKET_RIGHT
        </autogen>
        <autogen>
            __KeyToKey__
            KeyCode::BRACKET_LEFT, ModifierFlag::SHIFT_L,
            KeyCode::BRACKET_RIGHT, ModifierFlag::SHIFT_L
        </autogen>
        <autogen>
            __KeyToKey__
            KeyCode::BRACKET_RIGHT,
            KeyCode::BACKSLASH
        </autogen>
        <autogen>
            __KeyToKey__
            KeyCode::BRACKET_RIGHT, ModifierFlag::SHIFT_L,
            KeyCode::BACKSLASH, ModifierFlag::SHIFT_L
        </autogen>
        <autogen>
            __KeyToKey__
            KeyCode::JIS_YEN,
            KeyCode::JIS_YEN, ModifierFlag::OPTION_L
        </autogen>
        <autogen>
            __KeyToKey__
            KeyCode::BACKSLASH, ModifierFlag::SHIFT_L,
            KeyCode::EQUAL, ModifierFlag::SHIFT_L
        </autogen>
        <autogen>
            __KeyToKey__
            KeyCode::BACKSLASH,
            KeyCode::BRACKET_LEFT, ModifierFlag::SHIFT_L
        </autogen>
        <autogen>
            __DoublePressModifier__
            KeyCode::JIS_EISUU,
            KeyCode::VK_CHANGE_INPUTSOURCE_CHINESE_SIMPLIFIED,
            KeyCode::VK_CHANGE_INPUTSOURCE_US
        </autogen>
    </item>
</root>