Created
October 2, 2012 23:59
-
-
Save sjl/3824109 to your computer and use it in GitHub Desktop.
Math Layer
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<item> | |
<name>Math Layer</name> | |
<appendix>Right Control key activates the Math key layer.</appendix> | |
<identifier>space_cadet.math_layer</identifier> | |
<autogen> | |
--KeyToKey-- | |
KeyCode::CONTROL_R, | |
KeyCode::VK_STICKY_EXTRA3 | |
</autogen> | |
<autogen> | |
--KeyToKey-- | |
KeyCode::A, ModifierFlag::EXTRA3 | VK_SHIFT, | |
KeyCode::KEY_2, ModifierFlag::OPTION_L, | |
KeyCode::KEY_1, ModifierFlag::OPTION_L, | |
KeyCode::KEY_3, ModifierFlag::OPTION_L, | |
KeyCode::KEY_5, ModifierFlag::OPTION_L, | |
</autogen> | |
<autogen> | |
--KeyToKey-- | |
KeyCode::A, ModifierFlag::EXTRA3, | |
KeyCode::KEY_2, ModifierFlag::OPTION_L, | |
KeyCode::KEY_2, ModifierFlag::OPTION_L, | |
KeyCode::KEY_2, ModifierFlag::OPTION_L, | |
KeyCode::KEY_7, ModifierFlag::OPTION_L, | |
</autogen> | |
<autogen> | |
--KeyToKey-- | |
KeyCode::C, ModifierFlag::EXTRA3 | VK_SHIFT, | |
KeyCode::KEY_2, ModifierFlag::OPTION_L, | |
KeyCode::KEY_1, ModifierFlag::OPTION_L, | |
KeyCode::KEY_0, ModifierFlag::OPTION_L, | |
KeyCode::KEY_2, ModifierFlag::OPTION_L, | |
</autogen> | |
<autogen> | |
--KeyToKey-- | |
KeyCode::C, ModifierFlag::EXTRA3, | |
KeyCode::KEY_2, ModifierFlag::OPTION_L, | |
KeyCode::KEY_2, ModifierFlag::OPTION_L, | |
KeyCode::KEY_1, ModifierFlag::OPTION_L, | |
KeyCode::KEY_8, ModifierFlag::OPTION_L, | |
</autogen> | |
<autogen> | |
--KeyToKey-- | |
KeyCode::E, ModifierFlag::EXTRA3 | VK_SHIFT, | |
KeyCode::KEY_2, ModifierFlag::OPTION_L, | |
KeyCode::KEY_2, ModifierFlag::OPTION_L, | |
KeyCode::KEY_0, ModifierFlag::OPTION_L, | |
KeyCode::KEY_9, ModifierFlag::OPTION_L, | |
</autogen> | |
<autogen> | |
--KeyToKey-- | |
KeyCode::E, ModifierFlag::EXTRA3, | |
KeyCode::KEY_2, ModifierFlag::OPTION_L, | |
KeyCode::KEY_2, ModifierFlag::OPTION_L, | |
KeyCode::KEY_0, ModifierFlag::OPTION_L, | |
KeyCode::KEY_8, ModifierFlag::OPTION_L, | |
</autogen> | |
<autogen> | |
--KeyToKey-- | |
KeyCode::F, ModifierFlag::EXTRA3, | |
KeyCode::KEY_2, ModifierFlag::OPTION_L, | |
KeyCode::KEY_2, ModifierFlag::OPTION_L, | |
KeyCode::KEY_2, ModifierFlag::OPTION_L, | |
KeyCode::B, ModifierFlag::OPTION_L, | |
</autogen> | |
<autogen> | |
--KeyToKey-- | |
KeyCode::I, ModifierFlag::EXTRA3 | VK_SHIFT, | |
KeyCode::KEY_2, ModifierFlag::OPTION_L, | |
KeyCode::KEY_2, ModifierFlag::OPTION_L, | |
KeyCode::KEY_1, ModifierFlag::OPTION_L, | |
KeyCode::E, ModifierFlag::OPTION_L, | |
</autogen> | |
<autogen> | |
--KeyToKey-- | |
KeyCode::I, ModifierFlag::EXTRA3, | |
KeyCode::KEY_2, ModifierFlag::OPTION_L, | |
KeyCode::KEY_2, ModifierFlag::OPTION_L, | |
KeyCode::KEY_2, ModifierFlag::OPTION_L, | |
KeyCode::KEY_9, ModifierFlag::OPTION_L, | |
</autogen> | |
<autogen> | |
--KeyToKey-- | |
KeyCode::N, ModifierFlag::EXTRA3 | VK_SHIFT, | |
KeyCode::KEY_2, ModifierFlag::OPTION_L, | |
KeyCode::KEY_1, ModifierFlag::OPTION_L, | |
KeyCode::KEY_1, ModifierFlag::OPTION_L, | |
KeyCode::KEY_5, ModifierFlag::OPTION_L, | |
</autogen> | |
<autogen> | |
--KeyToKey-- | |
KeyCode::O, ModifierFlag::EXTRA3, | |
KeyCode::KEY_2, ModifierFlag::OPTION_L, | |
KeyCode::KEY_2, ModifierFlag::OPTION_L, | |
KeyCode::KEY_2, ModifierFlag::OPTION_L, | |
KeyCode::KEY_8, ModifierFlag::OPTION_L, | |
</autogen> | |
<autogen> | |
--KeyToKey-- | |
KeyCode::R, ModifierFlag::EXTRA3 | VK_SHIFT, | |
KeyCode::KEY_2, ModifierFlag::OPTION_L, | |
KeyCode::KEY_1, ModifierFlag::OPTION_L, | |
KeyCode::KEY_1, ModifierFlag::OPTION_L, | |
KeyCode::D, ModifierFlag::OPTION_L, | |
</autogen> | |
<autogen> | |
--KeyToKey-- | |
KeyCode::R, ModifierFlag::EXTRA3, | |
KeyCode::KEY_2, ModifierFlag::OPTION_L, | |
KeyCode::KEY_2, ModifierFlag::OPTION_L, | |
KeyCode::KEY_1, ModifierFlag::OPTION_L, | |
KeyCode::A, ModifierFlag::OPTION_L, | |
</autogen> | |
<autogen> | |
--KeyToKey-- | |
KeyCode::U, ModifierFlag::EXTRA3, | |
KeyCode::KEY_2, ModifierFlag::OPTION_L, | |
KeyCode::KEY_2, ModifierFlag::OPTION_L, | |
KeyCode::KEY_2, ModifierFlag::OPTION_L, | |
KeyCode::A, ModifierFlag::OPTION_L, | |
</autogen> | |
<autogen> | |
--KeyToKey-- | |
KeyCode::X, ModifierFlag::EXTRA3, | |
KeyCode::KEY_2, ModifierFlag::OPTION_L, | |
KeyCode::KEY_2, ModifierFlag::OPTION_L, | |
KeyCode::B, ModifierFlag::OPTION_L, | |
KeyCode::B, ModifierFlag::OPTION_L, | |
</autogen> | |
<autogen> | |
--KeyToKey-- | |
KeyCode::Z, ModifierFlag::EXTRA3 | VK_SHIFT, | |
KeyCode::KEY_2, ModifierFlag::OPTION_L, | |
KeyCode::KEY_1, ModifierFlag::OPTION_L, | |
KeyCode::KEY_2, ModifierFlag::OPTION_L, | |
KeyCode::KEY_4, ModifierFlag::OPTION_L, | |
</autogen> | |
<autogen> | |
--KeyToKey-- | |
KeyCode::MINUS, ModifierFlag::EXTRA3, | |
KeyCode::KEY_0, ModifierFlag::OPTION_L, | |
KeyCode::KEY_0, ModifierFlag::OPTION_L, | |
KeyCode::A, ModifierFlag::OPTION_L, | |
KeyCode::C, ModifierFlag::OPTION_L, | |
</autogen> | |
<autogen> | |
--KeyToKey-- | |
KeyCode::EQUAL, ModifierFlag::EXTRA3 | VK_SHIFT, | |
KeyCode::KEY_0, ModifierFlag::OPTION_L, | |
KeyCode::KEY_0, ModifierFlag::OPTION_L, | |
KeyCode::B, ModifierFlag::OPTION_L, | |
KeyCode::KEY_1, ModifierFlag::OPTION_L, | |
</autogen> | |
<autogen> | |
--KeyToKey-- | |
KeyCode::EQUAL, ModifierFlag::EXTRA3, | |
KeyCode::KEY_2, ModifierFlag::OPTION_L, | |
KeyCode::KEY_2, ModifierFlag::OPTION_L, | |
KeyCode::KEY_6, ModifierFlag::OPTION_L, | |
KeyCode::KEY_0, ModifierFlag::OPTION_L, | |
</autogen> | |
<autogen> | |
--KeyToKey-- | |
KeyCode::SLASH, ModifierFlag::EXTRA3, | |
KeyCode::KEY_0, ModifierFlag::OPTION_L, | |
KeyCode::KEY_0, ModifierFlag::OPTION_L, | |
KeyCode::F, ModifierFlag::OPTION_L, | |
KeyCode::KEY_7, ModifierFlag::OPTION_L, | |
</autogen> | |
<autogen> | |
--KeyToKey-- | |
KeyCode::COMMA, ModifierFlag::EXTRA3 | VK_SHIFT, | |
KeyCode::KEY_2, ModifierFlag::OPTION_L, | |
KeyCode::KEY_2, ModifierFlag::OPTION_L, | |
KeyCode::KEY_6, ModifierFlag::OPTION_L, | |
KeyCode::KEY_4, ModifierFlag::OPTION_L, | |
</autogen> | |
<autogen> | |
--KeyToKey-- | |
KeyCode::DOT, ModifierFlag::EXTRA3 | VK_SHIFT, | |
KeyCode::KEY_2, ModifierFlag::OPTION_L, | |
KeyCode::KEY_2, ModifierFlag::OPTION_L, | |
KeyCode::KEY_6, ModifierFlag::OPTION_L, | |
KeyCode::KEY_5, ModifierFlag::OPTION_L, | |
</autogen> | |
<autogen> | |
--KeyToKey-- | |
KeyCode::DOT, ModifierFlag::EXTRA3, | |
KeyCode::KEY_0, ModifierFlag::OPTION_L, | |
KeyCode::KEY_0, ModifierFlag::OPTION_L, | |
KeyCode::B, ModifierFlag::OPTION_L, | |
KeyCode::KEY_7, ModifierFlag::OPTION_L, | |
</autogen> | |
<autogen> | |
--KeyToKey-- | |
KeyCode::KEY_0, ModifierFlag::EXTRA3, | |
KeyCode::KEY_2, ModifierFlag::OPTION_L, | |
KeyCode::KEY_2, ModifierFlag::OPTION_L, | |
KeyCode::KEY_0, ModifierFlag::OPTION_L, | |
KeyCode::KEY_5, ModifierFlag::OPTION_L, | |
</autogen> | |
<autogen> | |
--KeyToKey-- | |
KeyCode::KEY_8, ModifierFlag::EXTRA3 | VK_SHIFT, | |
KeyCode::KEY_0, ModifierFlag::OPTION_L, | |
KeyCode::KEY_0, ModifierFlag::OPTION_L, | |
KeyCode::D, ModifierFlag::OPTION_L, | |
KeyCode::KEY_7, ModifierFlag::OPTION_L, | |
</autogen> | |
<autogen> | |
--KeyToKey-- | |
KeyCode::BACKQUOTE, ModifierFlag::EXTRA3 | VK_SHIFT, | |
KeyCode::KEY_2, ModifierFlag::OPTION_L, | |
KeyCode::KEY_2, ModifierFlag::OPTION_L, | |
KeyCode::KEY_4, ModifierFlag::OPTION_L, | |
KeyCode::KEY_8, ModifierFlag::OPTION_L, | |
</autogen> | |
<autogen> | |
--KeyToKey-- | |
KeyCode::BRACKET_LEFT, ModifierFlag::EXTRA3 | VK_CONTROL | VK_SHIFT, | |
KeyCode::KEY_2, ModifierFlag::OPTION_L, | |
KeyCode::KEY_2, ModifierFlag::OPTION_L, | |
KeyCode::KEY_8, ModifierFlag::OPTION_L, | |
KeyCode::KEY_8, ModifierFlag::OPTION_L, | |
</autogen> | |
<autogen> | |
--KeyToKey-- | |
KeyCode::BRACKET_LEFT, ModifierFlag::EXTRA3 | VK_SHIFT, | |
KeyCode::KEY_2, ModifierFlag::OPTION_L, | |
KeyCode::KEY_2, ModifierFlag::OPTION_L, | |
KeyCode::KEY_8, ModifierFlag::OPTION_L, | |
KeyCode::KEY_4, ModifierFlag::OPTION_L, | |
</autogen> | |
<autogen> | |
--KeyToKey-- | |
KeyCode::BRACKET_LEFT, ModifierFlag::EXTRA3 | VK_CONTROL, | |
KeyCode::KEY_2, ModifierFlag::OPTION_L, | |
KeyCode::KEY_2, ModifierFlag::OPTION_L, | |
KeyCode::KEY_8, ModifierFlag::OPTION_L, | |
KeyCode::KEY_6, ModifierFlag::OPTION_L, | |
</autogen> | |
<autogen> | |
--KeyToKey-- | |
KeyCode::BRACKET_LEFT, ModifierFlag::EXTRA3, | |
KeyCode::KEY_2, ModifierFlag::OPTION_L, | |
KeyCode::KEY_2, ModifierFlag::OPTION_L, | |
KeyCode::KEY_8, ModifierFlag::OPTION_L, | |
KeyCode::KEY_2, ModifierFlag::OPTION_L, | |
</autogen> | |
<autogen> | |
--KeyToKey-- | |
KeyCode::BRACKET_RIGHT, ModifierFlag::EXTRA3 | VK_CONTROL | VK_SHIFT, | |
KeyCode::KEY_2, ModifierFlag::OPTION_L, | |
KeyCode::KEY_2, ModifierFlag::OPTION_L, | |
KeyCode::KEY_8, ModifierFlag::OPTION_L, | |
KeyCode::KEY_9, ModifierFlag::OPTION_L, | |
</autogen> | |
<autogen> | |
--KeyToKey-- | |
KeyCode::BRACKET_RIGHT, ModifierFlag::EXTRA3 | VK_SHIFT, | |
KeyCode::KEY_2, ModifierFlag::OPTION_L, | |
KeyCode::KEY_2, ModifierFlag::OPTION_L, | |
KeyCode::KEY_8, ModifierFlag::OPTION_L, | |
KeyCode::KEY_5, ModifierFlag::OPTION_L, | |
</autogen> | |
<autogen> | |
--KeyToKey-- | |
KeyCode::BRACKET_RIGHT, ModifierFlag::EXTRA3 | VK_CONTROL, | |
KeyCode::KEY_2, ModifierFlag::OPTION_L, | |
KeyCode::KEY_2, ModifierFlag::OPTION_L, | |
KeyCode::KEY_8, ModifierFlag::OPTION_L, | |
KeyCode::KEY_7, ModifierFlag::OPTION_L, | |
</autogen> | |
<autogen> | |
--KeyToKey-- | |
KeyCode::BRACKET_RIGHT, ModifierFlag::EXTRA3, | |
KeyCode::KEY_2, ModifierFlag::OPTION_L, | |
KeyCode::KEY_2, ModifierFlag::OPTION_L, | |
KeyCode::KEY_8, ModifierFlag::OPTION_L, | |
KeyCode::KEY_3, ModifierFlag::OPTION_L, | |
</autogen> | |
<autogen> | |
--KeyToKey-- | |
KeyCode::CURSOR_RIGHT, ModifierFlag::EXTRA3 | VK_CONTROL | VK_SHIFT, | |
KeyCode::KEY_2, ModifierFlag::OPTION_L, | |
KeyCode::KEY_1, ModifierFlag::OPTION_L, | |
KeyCode::C, ModifierFlag::OPTION_L, | |
KeyCode::F, ModifierFlag::OPTION_L, | |
</autogen> | |
<autogen> | |
--KeyToKey-- | |
KeyCode::CURSOR_RIGHT, ModifierFlag::EXTRA3 | VK_SHIFT, | |
KeyCode::KEY_2, ModifierFlag::OPTION_L, | |
KeyCode::KEY_1, ModifierFlag::OPTION_L, | |
KeyCode::KEY_9, ModifierFlag::OPTION_L, | |
KeyCode::B, ModifierFlag::OPTION_L, | |
</autogen> | |
<autogen> | |
--KeyToKey-- | |
KeyCode::CURSOR_RIGHT, ModifierFlag::EXTRA3 | VK_CONTROL, | |
KeyCode::KEY_2, ModifierFlag::OPTION_L, | |
KeyCode::KEY_1, ModifierFlag::OPTION_L, | |
KeyCode::D, ModifierFlag::OPTION_L, | |
KeyCode::KEY_2, ModifierFlag::OPTION_L, | |
</autogen> | |
<autogen> | |
--KeyToKey-- | |
KeyCode::CURSOR_RIGHT, ModifierFlag::EXTRA3, | |
KeyCode::KEY_2, ModifierFlag::OPTION_L, | |
KeyCode::KEY_1, ModifierFlag::OPTION_L, | |
KeyCode::KEY_9, ModifierFlag::OPTION_L, | |
KeyCode::KEY_2, ModifierFlag::OPTION_L, | |
</autogen> | |
<autogen> | |
--KeyToKey-- | |
KeyCode::CURSOR_LEFT, ModifierFlag::EXTRA3 | VK_CONTROL | VK_SHIFT, | |
KeyCode::KEY_2, ModifierFlag::OPTION_L, | |
KeyCode::KEY_1, ModifierFlag::OPTION_L, | |
KeyCode::C, ModifierFlag::OPTION_L, | |
KeyCode::D, ModifierFlag::OPTION_L, | |
</autogen> | |
<autogen> | |
--KeyToKey-- | |
KeyCode::CURSOR_LEFT, ModifierFlag::EXTRA3 | VK_SHIFT, | |
KeyCode::KEY_2, ModifierFlag::OPTION_L, | |
KeyCode::KEY_1, ModifierFlag::OPTION_L, | |
KeyCode::KEY_9, ModifierFlag::OPTION_L, | |
KeyCode::A, ModifierFlag::OPTION_L, | |
</autogen> | |
<autogen> | |
--KeyToKey-- | |
KeyCode::CURSOR_LEFT, ModifierFlag::EXTRA3 | VK_CONTROL, | |
KeyCode::KEY_2, ModifierFlag::OPTION_L, | |
KeyCode::KEY_1, ModifierFlag::OPTION_L, | |
KeyCode::D, ModifierFlag::OPTION_L, | |
KeyCode::KEY_0, ModifierFlag::OPTION_L, | |
</autogen> | |
<autogen> | |
--KeyToKey-- | |
KeyCode::CURSOR_LEFT, ModifierFlag::EXTRA3, | |
KeyCode::KEY_2, ModifierFlag::OPTION_L, | |
KeyCode::KEY_1, ModifierFlag::OPTION_L, | |
KeyCode::KEY_9, ModifierFlag::OPTION_L, | |
KeyCode::KEY_0, ModifierFlag::OPTION_L, | |
</autogen> | |
<autogen> | |
--KeyToKey-- | |
KeyCode::CURSOR_UP, ModifierFlag::EXTRA3 | VK_CONTROL | VK_SHIFT, | |
KeyCode::KEY_2, ModifierFlag::OPTION_L, | |
KeyCode::KEY_1, ModifierFlag::OPTION_L, | |
KeyCode::C, ModifierFlag::OPTION_L, | |
KeyCode::E, ModifierFlag::OPTION_L, | |
</autogen> | |
<autogen> | |
--KeyToKey-- | |
KeyCode::CURSOR_UP, ModifierFlag::EXTRA3 | VK_SHIFT, | |
KeyCode::KEY_2, ModifierFlag::OPTION_L, | |
KeyCode::KEY_1, ModifierFlag::OPTION_L, | |
KeyCode::A, ModifierFlag::OPTION_L, | |
KeyCode::E, ModifierFlag::OPTION_L, | |
</autogen> | |
<autogen> | |
--KeyToKey-- | |
KeyCode::CURSOR_UP, ModifierFlag::EXTRA3 | VK_CONTROL, | |
KeyCode::KEY_2, ModifierFlag::OPTION_L, | |
KeyCode::KEY_1, ModifierFlag::OPTION_L, | |
KeyCode::D, ModifierFlag::OPTION_L, | |
KeyCode::KEY_4, ModifierFlag::OPTION_L, | |
</autogen> | |
<autogen> | |
--KeyToKey-- | |
KeyCode::CURSOR_UP, ModifierFlag::EXTRA3, | |
KeyCode::KEY_2, ModifierFlag::OPTION_L, | |
KeyCode::KEY_1, ModifierFlag::OPTION_L, | |
KeyCode::KEY_9, ModifierFlag::OPTION_L, | |
KeyCode::KEY_4, ModifierFlag::OPTION_L, | |
</autogen> | |
<autogen> | |
--KeyToKey-- | |
KeyCode::CURSOR_DOWN, ModifierFlag::EXTRA3 | VK_CONTROL | VK_SHIFT, | |
KeyCode::KEY_2, ModifierFlag::OPTION_L, | |
KeyCode::KEY_1, ModifierFlag::OPTION_L, | |
KeyCode::C, ModifierFlag::OPTION_L, | |
KeyCode::E, ModifierFlag::OPTION_L, | |
</autogen> | |
<autogen> | |
--KeyToKey-- | |
KeyCode::CURSOR_DOWN, ModifierFlag::EXTRA3 | VK_SHIFT, | |
KeyCode::KEY_2, ModifierFlag::OPTION_L, | |
KeyCode::KEY_1, ModifierFlag::OPTION_L, | |
KeyCode::A, ModifierFlag::OPTION_L, | |
KeyCode::E, ModifierFlag::OPTION_L, | |
</autogen> | |
<autogen> | |
--KeyToKey-- | |
KeyCode::CURSOR_DOWN, ModifierFlag::EXTRA3 | VK_CONTROL, | |
KeyCode::KEY_2, ModifierFlag::OPTION_L, | |
KeyCode::KEY_1, ModifierFlag::OPTION_L, | |
KeyCode::D, ModifierFlag::OPTION_L, | |
KeyCode::KEY_4, ModifierFlag::OPTION_L, | |
</autogen> | |
<autogen> | |
--KeyToKey-- | |
KeyCode::CURSOR_DOWN, ModifierFlag::EXTRA3, | |
KeyCode::KEY_2, ModifierFlag::OPTION_L, | |
KeyCode::KEY_1, ModifierFlag::OPTION_L, | |
KeyCode::KEY_9, ModifierFlag::OPTION_L, | |
KeyCode::KEY_4, ModifierFlag::OPTION_L, | |
</autogen> | |
</item> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Steve did you ever get your key caps to make your virtual space kadet?
If not, I'd like to collab with you to design the layout (in a couple of variations) - WASD will manufacture a Cherry MX compatible set (I know this won't help much for your Topre based dream machine :( )
Figure this would be a nice thing to do for the keyboard hacking community.
You can see my efforts with reproducing an AEK II style layout (Emacs / Programmer slanted, with no Caps, + Hyper) here... https://github.com/ocodo/Keycaps-Inspired-by-Apple-Extended-Keyboard-II