Skip to content

Instantly share code, notes, and snippets.

@hirakujira
Last active January 9, 2016 13:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hirakujira/ab3470fdd3b1e3038202 to your computer and use it in GitHub Desktop.
Save hirakujira/ab3470fdd3b1e3038202 to your computer and use it in GitHub Desktop.
<?xml version="1.0"?>
<root>
<devicevendordef>
<vendorname>APPLE</vendorname>
<vendorid>0x05ac</vendorid>
</devicevendordef>
<deviceproductdef>
<productname>APPLE_G5_KEYBOARD</productname>
<productid>0x020b</productid>
</deviceproductdef>
<item>
<name>G5 Keyboard Function Keys Mapping</name>
<device_only>DeviceVendor::APPLE, DeviceProduct::APPLE_G5_KEYBOARD</device_only>
<item>
<name>F1, F2 to Brightness Adjust</name>
<identifier>private.appleg5remapping.brightness</identifier>
<device_only>DeviceVendor::APPLE, DeviceProduct::APPLE_G5_KEYBOARD</device_only>
<autogen>__KeyToKey__ KeyCode::F1, ConsumerKeyCode::BRIGHTNESS_DOWN</autogen>
<autogen>__KeyToKey__ KeyCode::F2, ConsumerKeyCode::BRIGHTNESS_UP</autogen>
</item>
<item>
<name>F3, F4 to Mission Control / LaunchPad</name>
<device_only>DeviceVendor::APPLE, DeviceProduct::APPLE_G5_KEYBOARD</device_only>
<identifier>private.appleg5remapping.missioncontrol_launchpad</identifier>
<autogen>__KeyToKey__ KeyCode::F3, KeyCode::EXPOSE_ALL</autogen>
<autogen>__KeyToKey__ KeyCode::F4, KeyCode::LAUNCHPAD</autogen>
</item>
<item>
<name>F5, F6 to Keyboard Blacklit Adjust (Not work for external keyboard)</name>
<device_only>DeviceVendor::APPLE, DeviceProduct::APPLE_G5_KEYBOARD</device_only>
<identifier>private.appleg5remapping.keyboardblacklit</identifier>
<autogen>__KeyToKey__ KeyCode::F5, ConsumerKeyCode::KEYBOARDLIGHT_LOW</autogen>
<autogen>__KeyToKey__ KeyCode::F6, ConsumerKeyCode::KEYBOARDLIGHT_HIGH</autogen>
</item>
<item>
<name>F7, F8, F9 to Music Controls</name>
<device_only>DeviceVendor::APPLE, DeviceProduct::APPLE_G5_KEYBOARD</device_only>
<identifier>private.appleg5remapping.musiccontrols</identifier>
<autogen>__KeyToKey__ KeyCode::F7, ConsumerKeyCode::MUSIC_PREV</autogen>
<autogen>__KeyToKey__ KeyCode::F8, ConsumerKeyCode::MUSIC_PLAY</autogen>
<autogen>__KeyToKey__ KeyCode::F9, ConsumerKeyCode::MUSIC_NEXT</autogen>
</item>
<item>
<name>F10, F11, F12 to Speaker Controls</name>
<device_only>DeviceVendor::APPLE, DeviceProduct::APPLE_G5_KEYBOARD</device_only>
<identifier>private.appleg5remapping.speakercontrols</identifier>
<autogen>__KeyToKey__ KeyCode::F10, ConsumerKeyCode::VOLUME_MUTE</autogen>
<autogen>__KeyToKey__ KeyCode::F11, ConsumerKeyCode::VOLUME_DOWN</autogen>
<autogen>__KeyToKey__ KeyCode::F12, ConsumerKeyCode::VOLUME_UP</autogen>
</item>
<item>
<name>F13 to Spotlight (Ctrl + Space)</name>
<device_only>DeviceVendor::APPLE, DeviceProduct::APPLE_G5_KEYBOARD</device_only>
<identifier>private.appleg5remapping.spotlight</identifier>
<autogen>__KeyToKey__ KeyCode::F13, KeyCode::SPACE, VK_CONTROL</autogen>
</item>
<item>
<name>Help to Fn</name>
<device_only>DeviceVendor::APPLE, DeviceProduct::APPLE_G5_KEYBOARD</device_only>
<identifier>private.appleg5remapping.help</identifier>
<autogen>__KeyToKey__ KeyCode::HELP, KeyCode::FN</autogen>
</item>
</item>
</root>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment