Ask Different is a question and answer site for power users of Apple hardware and software. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

At work, I have a MacBook Pro and a RHEL workstation that share a HP keyboard and mouse via a KVM switch. I do most of my work on the Mac so I prefer to change the modifier keys so they command and alt are in the same positions as an Apple keyboard. Here is a screencast to demonstrate the exact options I change:

The problem is, whenever I switch the KVM or disconnect the Mac, I have to usually have to go back into System Preferences to make the change. Is there some way I could automate this?

share|improve this question
up vote 1 down vote accepted

I'm not sure if it'll support the switching case you describe 100%, but KeyRemap4Macbook will probably get you most of the way there. You can set different options for the internal and external keyboards, for example.

share|improve this answer

Your Answer


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.