Skip to content

Instantly share code, notes, and snippets.

@chrisfcarroll
Last active September 21, 2017 13:14
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 chrisfcarroll/d32bc8b50857572b8f67601628194549 to your computer and use it in GitHub Desktop.
Save chrisfcarroll/d32bc8b50857572b8f67601628194549 to your computer and use it in GitHub Desktop.
Windows on Mac : Just the main Windows Ctrl-keystroke -> Cmd-keystroke mappings. Using Karabiner.
{
"profiles": [
{
"complex_modifications": {
"parameters": { /* ... etc ... */ },
"README": "********************************************************************************************************",
"README": "*" COPY JUST THE ELEMENTS OF THIS "rules" array into your profiles.complex_modifications.rules array. "*",
"README": "********************************************************************************************************",
"rules": [
{
"description": "Map Control+Z to Command+Z",
"manipulators": [ { "from": { "key_code": "z","modifiers": {"mandatory": ["control"],"optional": ["any"]}},"to": [{"key_code": "z","modifiers": ["command"]}],"type": "basic"}]
},
{
"description": "Map Control+X to Command+X",
"manipulators": [ { "from": { "key_code": "x","modifiers": {"mandatory": ["control"],"optional": ["any"]}},"to": [{"key_code": "x","modifiers": ["command"]}],"type": "basic"}]
},
{
"description": "Map Control+C to Command+C",
"manipulators": [ { "from": { "key_code": "c","modifiers": {"mandatory": ["control"],"optional": ["any"]}},"to": [{"key_code": "c","modifiers": ["command"]}],"type": "basic"}]
},
{
"description": "Map Control+V to Command+V",
"manipulators": [ { "from": { "key_code": "v","modifiers": {"mandatory": ["control"],"optional": ["any"]}},"to": [{"key_code": "v","modifiers": ["command"]}],"type": "basic"}]
},
{
"description": "Map Control+N to Command+N",
"manipulators": [ { "from": { "key_code": "n","modifiers": {"mandatory": ["control"],"optional": ["any"]}},"to": [{"key_code": "n","modifiers": ["command"]}],"type": "basic"}]
},
{
"description": "Map Control+S to Command+S",
"manipulators": [ { "from": { "key_code": "s","modifiers": {"mandatory": ["control"],"optional": ["any"]}},"to": [{"key_code": "s","modifiers": ["command"]}],"type": "basic"}]
},
{
"description": "Map Control+O to Command+O",
"manipulators": [ { "from": { "key_code": "o","modifiers": {"mandatory": ["control"],"optional": ["any"]}},"to": [{"key_code": "o","modifiers": ["command"]}],"type": "basic"}]
},
{
"description": "Map Control+Y to Command+Y",
"manipulators": [ { "from": { "key_code": "y","modifiers": {"mandatory": ["control"],"optional": ["any"]}},"to": [{"key_code": "y","modifiers": ["command"]}],"type": "basic"}]
},
{
"description": "Map Control+W to Command+W",
"manipulators": [ { "from": { "key_code": "w","modifiers": {"mandatory": ["control"],"optional": ["any"]}},"to": [{"key_code": "w","modifiers": ["command"]}],"type": "basic"}]
},
{
"description": "Map Option+Tab to Command+Tab",
"manipulators": [ { "from": { "key_code": "tab", "modifiers": { "mandatory": ["option"],"optional": ["any"]}}, "to": [{"key_code": "tab","modifiers": ["command"]}],"type": "basic"}]
}
],
"README": "******************************************************************************************************",
"README": "******************************************************************************************************",
/* ... etc ... */
}
}
]
}
@chrisfcarroll
Copy link
Author

Edit your karabiner.json file carefully at ~/.config/karabiner/karabiner.json
Add these rules to your complex modifications section of your selected profile.
Get Karabiner-Elements from pqrs.org/osx/karabiner/ or see the source at github.com/tekezo/Karabiner-Elements

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment