|<name>Swap Command and Option (Parallels)</name>|
|<autogen>__KeyToKey__ KeyCode::OPTION_L, KeyCode::COMMAND_L</autogen>|
|<autogen>__KeyToKey__ KeyCode::COMMAND_L, KeyCode::OPTION_L</autogen>|
|<autogen>__KeyToKey__ KeyCode::COMMAND_R, KeyCode::OPTION_L</autogen>|
The intent for this setting is that it would be used with Parallels and a non-Apple keyboard, like the Microsoft Natural Keyboard (4000 or 7000).
There are two steps required. One is going into the Keyboard preferences, then the Modifier Keys, choosing the Microsoft Ergonomic Keyboard and swapping Option to Command and Command to Option. This makes the placement correct for all Mac-specific apps. The second is to tell Karabiner to swap those keys back for Parallels using a private.xml setting. See also https://pqrs.org/osx/karabiner/document.html.en#privatexml for additional documentation.
Note that this would work just fine for VMWare or VirtualBox as well, you would just have to change the references to "com.parallels.desktop.console" to whatever app bundle name you want these settings to reflect in.
Leave comments for questions.
You seem to understand this quiet a bit. Would you be able to help me with the problem I am having?
BTW: this is what I have now, but it is not working.. (also dont know how to check if this is 'active').
@NicolasVanhecke my apologies, but I never was notified of your comment, otherwise I would have tried to respond!
I'm not sure off hand what might be going on with your problem, but I will say that, if you're on MacOS Sierra, Karabiner doesn't work any more and you'd need Karabiner Elements instead. That's actually what I'm using now and it has a GUI for mapping keys per device (which is a relatively new feature). It's a lot easier than messing with the
See latest Karabiner Elements support to give me all of these options at https://github.com/drmohundro/dotfiles/blob/master/config/karabiner/karabiner.json.