Skip to content

Instantly share code, notes, and snippets.

@antony-scott
Created February 26, 2025 08:42
Show Gist options
  • Save antony-scott/1a02de27d4779c2b9f0fc903cba64caa to your computer and use it in GitHub Desktop.
Save antony-scott/1a02de27d4779c2b9f0fc903cba64caa to your computer and use it in GitHub Desktop.
Common Windows to MacOS keyboard shortcuts
{
"profiles": [
{
"complex_modifications": {
"rules": [
{
"description": "Ctrl-A -> Select All",
"manipulators": [
{
"from": {
"key_code": "a",
"modifiers": {
"mandatory": ["control"],
"optional": ["any"]
}
},
"to": [
{
"key_code": "a",
"modifiers": ["command"]
}
],
"type": "basic"
}
]
},
{
"description": "Ctrl+S -> Save",
"manipulators": [
{
"from": {
"key_code": "s",
"modifiers": { "mandatory": ["control"] }
},
"to": [
{
"key_code": "s",
"modifiers": ["command"]
}
],
"type": "basic"
}
]
},
{
"description": "Ctrl+Y -> Redo",
"manipulators": [
{
"from": {
"key_code": "y",
"modifiers": { "mandatory": ["control"] }
},
"to": [
{
"key_code": "z",
"modifiers": ["command", "shift"]
}
],
"type": "basic"
}
]
},
{
"description": "Ctrl-Z -> Undo",
"manipulators": [
{
"from": {
"key_code": "z",
"modifiers": {
"mandatory": ["control"],
"optional": ["any"]
}
},
"to": [
{
"key_code": "z",
"modifiers": ["command"]
}
],
"type": "basic"
}
]
},
{
"description": "Ctrl+Insert -> Copy",
"manipulators": [
{
"from": {
"key_code": "insert",
"modifiers": {
"mandatory": ["control"],
"optional": ["any"]
}
},
"to": [
{
"key_code": "c",
"modifiers": ["command"]
}
],
"type": "basic"
}
]
},
{
"description": "Shift+Insert -> Paste",
"manipulators": [
{
"from": {
"key_code": "insert",
"modifiers": {
"mandatory": ["shift"],
"optional": ["any"]
}
},
"to": [
{
"key_code": "v",
"modifiers": ["command"]
}
],
"type": "basic"
}
]
},
{
"description": "Shift+Delete -> Cut",
"manipulators": [
{
"from": {
"key_code": "delete_or_backspace",
"modifiers": { "mandatory": ["shift"] }
},
"to": [
{
"key_code": "x",
"modifiers": ["command"]
}
],
"type": "basic"
}
]
},
{
"description": "Ctrl+Home -> Top of file",
"manipulators": [
{
"from": {
"key_code": "home",
"modifiers": { "mandatory": ["control"] }
},
"to": [
{
"key_code": "up_arrow",
"modifiers": ["command"]
}
],
"type": "basic"
}
]
},
{
"description": "Ctrl+End, -> End of file",
"manipulators": [
{
"from": {
"key_code": "end",
"modifiers": { "mandatory": ["control"] }
},
"to": [
{
"key_code": "down_arrow",
"modifiers": ["command"]
}
],
"type": "basic"
}
]
}
]
},
"devices": [
{
"identifiers": {
"is_keyboard": true,
"product_id": 834,
"vendor_id": 1452
},
"ignore": true
}
],
"name": "Default profile",
"selected": true,
"virtual_hid_keyboard": { "keyboard_type_v2": "iso" }
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment