Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I would like to remap the (Eject) key to Volume Up.

I already have KeyRemap4MacBook and need the appropriate private.xml file.

share|improve this question

1 Answer 1

Save this as private.xml:

<?xml version="1.0"?>
<root>
<item>
    <name>eject to volume up</name>
    <identifier>eject_to_volume_up</identifier>
    <autogen>--ConsumerToConsumer-- ConsumerKeyCode::EJECT, ModifierFlag::NONE, ConsumerKeyCode::VOLUME_UP</autogen>
    <autogen>--ConsumerToConsumer-- ConsumerKeyCode::EJECT, VK_OPTION, VK_SHIFT, ConsumerKeyCode::VOLUME_UP, VK_OPTION, VK_SHIFT</autogen>
    <autogen>--ConsumerToConsumer-- ConsumerKeyCode::EJECT, VK_OPTION, ConsumerKeyCode::VOLUME_UP, VK_OPTION</autogen>
</item>
</root>

After that, press the reload XML button in the first tab and select the checkbox at the top of the list.

You can remove the delay with NoEjectDelay. There's no preference pane for it, but it just removes the delay after you install it and restart.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.