Skip to content

Instantly share code, notes, and snippets.

@jamesasu
Created August 27, 2024 04:41
Show Gist options
  • Save jamesasu/cbfc44c436e563e005481b08e58f9f6f to your computer and use it in GitHub Desktop.
Save jamesasu/cbfc44c436e563e005481b08e58f9f6f to your computer and use it in GitHub Desktop.
Map a Mac keyboard so it has Windows shortcuts
https://karabiner-elements.pqrs.org/
https://ke-complex-modifications.pqrs.org/#pc_shortcuts
{
"description": "PC-Style Screenshot to File (PrintScreen to select)",
"manipulators": [
{
"conditions": [
{
"bundle_identifiers": [
"^com\\.microsoft\\.rdc$",
"^com\\.microsoft\\.rdc\\.",
"^net\\.sf\\.cord$",
"^com\\.thinomenon\\.RemoteDesktopConnection$",
"^com\\.itap-mobile\\.qmote$",
"^com\\.nulana\\.remotixmac$",
"^com\\.p5sys\\.jump\\.mac\\.viewer$",
"^com\\.p5sys\\.jump\\.mac\\.viewer\\.",
"^com\\.teamviewer\\.TeamViewer$",
"^com\\.vmware\\.horizon$",
"^com\\.2X\\.Client\\.Mac$",
"^com\\.OpenText\\.Exceed-TurboX-Client$",
"^com\\.realvnc\\.vncviewer$",
"^com\\.citrix\\.receiver\\.icaviewer",
"^com\\.vmware\\.fusion$",
"^com\\.vmware\\.horizon$",
"^com\\.vmware\\.view$",
"^com\\.parallels\\.desktop$",
"^com\\.parallels\\.vm$",
"^com\\.parallels\\.desktop\\.console$",
"^org\\.virtualbox\\.app\\.VirtualBoxVM$",
"^com\\.citrix\\.XenAppViewer$",
"^com\\.vmware\\.proxyApp\\.",
"^com\\.parallels\\.winapp\\.",
"^com\\.utmapp\\.UTM$"
],
"type": "frontmost_application_unless"
}
],
"from": {
"key_code": "s",
"modifiers": {
"mandatory": [
"left_command",
"left_shift"
]
}
},
"to": [
{
"key_code": "4",
"modifiers": [
"left_command",
"left_shift"
]
}
],
"type": "basic"
}
]
}
{
"description": "PC-Style Lock Screen",
"manipulators": [
{
"conditions": [
{
"bundle_identifiers": [
"^com\\.microsoft\\.rdc$",
"^com\\.microsoft\\.rdc\\.",
"^net\\.sf\\.cord$",
"^com\\.thinomenon\\.RemoteDesktopConnection$",
"^com\\.itap-mobile\\.qmote$",
"^com\\.nulana\\.remotixmac$",
"^com\\.p5sys\\.jump\\.mac\\.viewer$",
"^com\\.p5sys\\.jump\\.mac\\.viewer\\.",
"^com\\.teamviewer\\.TeamViewer$",
"^com\\.vmware\\.horizon$",
"^com\\.2X\\.Client\\.Mac$",
"^com\\.OpenText\\.Exceed-TurboX-Client$",
"^com\\.realvnc\\.vncviewer$",
"^com\\.citrix\\.receiver\\.icaviewer",
"^com\\.vmware\\.fusion$",
"^com\\.vmware\\.horizon$",
"^com\\.vmware\\.view$",
"^com\\.parallels\\.desktop$",
"^com\\.parallels\\.vm$",
"^com\\.parallels\\.desktop\\.console$",
"^org\\.virtualbox\\.app\\.VirtualBoxVM$",
"^com\\.citrix\\.XenAppViewer$",
"^com\\.vmware\\.proxyApp\\.",
"^com\\.parallels\\.winapp\\.",
"^com\\.utmapp\\.UTM$"
],
"type": "frontmost_application_unless"
}
],
"from": {
"key_code": "l",
"modifiers": {
"mandatory": [
"left_command"
]
}
},
"to": [
{
"key_code": "q",
"modifiers": [
"left_command",
"left_control"
]
}
],
"type": "basic"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment