Skip to content

Instantly share code, notes, and snippets.

@jamescobalt
Created May 19, 2015 04:40
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jamescobalt/150290cdf925655e21cc to your computer and use it in GitHub Desktop.
Save jamescobalt/150290cdf925655e21cc to your computer and use it in GitHub Desktop.
Karabiner Keyboard Remapping File for the E-Element RGB keyboard under Mac OS X
<?xml version="1.0"?>
<root>
<vkopenurldef>
<name>KeyCode::VK_OPEN_URL_APP_Calculator</name>
<url type="file">/Applications/Calculator.app</url>
</vkopenurldef>
<vkopenurldef>
<name>KeyCode::VK_OPEN_URL_APP_Mail</name>
<url type="file">/Applications/Mail.app</url>
</vkopenurldef>
<item>
<name>E-Element RGB</name>
<appendix>To use, first move keycaps on bottom row to be: | Ctrl | Alt | Win | Space | Menu | Fn | Alt | Ctrl |</appendix>
<item>
<name>Enable Required Keys</name>
<appendix>Must enable! Enables Left Command, Left Option, and Right Option</appendix>
<identifier>elementrgb.option</identifier>
<autogen>__KeyToKey__ KeyCode::PC_APPLICATION, KeyCode::OPTION_R</autogen>
<autogen>__KeyToKey__ KeyCode::COMMAND_L, KeyCode::OPTION_L</autogen>
<autogen>__KeyToKey__ KeyCode::OPTION_L, KeyCode::COMMAND_L</autogen>
<identifier essential="true">general.dont_remap_apple_keyboard</identifier>
</item>
<item>
<name>Enable Right Command</name>
<appendix>Key to right of spacebar (relocated Menu Key) acts as an additional Command key.</appendix>
<identifier>elementrgb.rcommand</identifier>
<autogen>__KeyToKey__ KeyCode::OPTION_R, KeyCode::COMMAND_R </autogen>
</item>
<item>
<name>Menu Key/Right Command to Custom</name>
<appendix>Right command key (relocated Menu Key) outputs Cmd+Opt+N. Assign in Keyboard Preferences.</appendix>
<identifier>elementrgb.rcustom</identifier>
<autogen>__KeyToKey__ KeyCode::COMMAND_R, KeyCode::N, ModifierFlag::COMMAND_L |ModifierFlag::OPTION_L </autogen>
</item>
<item>
<name>Media Keys</name>
<appendix>Enables proper mapping of volume and media player keys.</appendix>
<identifier>elementrgb.media</identifier>
<autogen>__KeyToKey__ KeyCode::F2, ConsumerKeyCode::VOLUME_DOWN</autogen>
<autogen>__KeyToKey__ KeyCode::F3, ConsumerKeyCode::VOLUME_UP</autogen>
<autogen>__KeyToKey__ KeyCode::F4, ConsumerKeyCode::VOLUME_MUTE</autogen>
<autogen>__KeyToKey__ KeyCode::F6, ConsumerKeyCode::MUSIC_PREV</autogen>
<autogen>__KeyToKey__ KeyCode::F7, ConsumerKeyCode::MUSIC_PLAY</autogen>
<autogen>__KeyToKey__ KeyCode::F8, ConsumerKeyCode::MUSIC_NEXT</autogen>
</item>
<item>
<name>Screenshot Keys</name>
<appendix>PrtSc = Full screen screenshot. ScrLk = Select target area screenshot.</appendix>
<identifier>elementrgb.screenshot</identifier>
<autogen>__KeyToKey__ KeyCode::PC_PRINTSCREEN, KeyCode::KEY_3, ModifierFlag::SHIFT_L | ModifierFlag::COMMAND_R</autogen>
<autogen>__KeyToKey__ KeyCode::PC_SCROLLLOCK, KeyCode::KEY_4, ModifierFlag::SHIFT_L | ModifierFlag::COMMAND_R</autogen>
</item>
<item>
<name>Desktop</name>
<appendix>F1 = Dashboard. F5 = Expose. F10 = Mission Control.</appendix>
<identifier>elementrgb.window</identifier>
<autogen>__KeyToKey__ KeyCode::F1, KeyCode::DASHBOARD</autogen>
<autogen>__KeyToKey__ KeyCode::F5, KeyCode::EXPOSE_ALL</autogen>
<autogen>__KeyToKey__ KeyCode::F10, KeyCode::LAUNCHPAD</autogen>
</item>
<item>
<name>Launch Calculator</name>
<appendix>F11 (the calculator keycap) launches the Calculator app in OS X.</appendix>
<identifier>elementrgb.calc</identifier>
<autogen>__KeyToKey__ KeyCode::F11, KeyCode::VK_OPEN_URL_APP_Calculator,</autogen>
</item>
<item>
<name>F9 to Custom</name>
<appendix>F9 (mail keycap) outputs Cmd+Opt+M. Assign shortcuts in OS X Keyboard Preferences.</appendix>
<identifier>elementrgb.f9</identifier>
<autogen>__KeyToKey__ KeyCode::F9, KeyCode::M, ModifierFlag::COMMAND_L |ModifierFlag::OPTION_L </autogen>
</item>
<item>
<name>F9 to Mail</name>
<appendix>F9 (the email keycap) launches the Apple Mail app in OS X.</appendix>
<identifier>elementrgb.email</identifier>
<autogen>__KeyToKey__ KeyCode::F9, KeyCode::VK_OPEN_URL_APP_Mail,</autogen>
</item>
<item>
<name>F12 Spotlight</name>
<appendix>F12 (the search keycap) launches Spotlight.</appendix>
<identifier>elementrgb.spotlight</identifier>
<autogen>__KeyToKey__ KeyCode::F12, KeyCode::SPACE, ModifierFlag::COMMAND_R</autogen>
</item>
<item>
<name>F12 File Spotlight</name>
<appendix>F12 (the search keycap) launches file search window.</appendix>
<identifier>elementrgb.filesearch</identifier>
<autogen>__KeyToKey__ KeyCode::F12, KeyCode::SPACE, ModifierFlag::COMMAND_R | ModifierFlag::OPTION_R</autogen>
</item>
<item>
<name>Eject</name>
<appendix>Pause key = Eject.</appendix>
<identifier>elementrgb.eject</identifier>
<autogen>__KeyToKey__ KeyCode::F15, ConsumerKeyCode::EJECT</autogen>
</item>
</item>
</root>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment