Skip to content

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Math Layer
<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>
@hyh1048576

I saw this from your blog. Does this only work in unicode hex input mode?
Is there a way to get some key which do "switch input method to U+, enter the keys,
and then switch back (to the original input method)"?

@jasonm23

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.