Skip to content

Instantly share code, notes, and snippets.

@vuon9
Last active November 18, 2025 15:53
Show Gist options
  • Select an option

  • Save vuon9/c282c605b35d6d4554a53cfc4afda8ab to your computer and use it in GitHub Desktop.

Select an option

Save vuon9/c282c605b35d6d4554a53cfc4afda8ab to your computer and use it in GitHub Desktop.
Powertoys - Keyboard Manager - Common macOS keys mapping

How to install

  • cd C:\Users\${username}\AppData\Local\Microsoft\PowerToys\Keyboard Manager
  • Backup file existing one of default.json
  • Download default.json and add it to the current folder

Mapped keys

key
Esc
Command-W
Command-G
Command-M
Command-Space
Command-L
Command-Tab
Command-left/right arrows
Control - Command - Space
Command-P
Option + Command + Esc
{"remapKeys":{"inProcess":[{"originalKeys":"164","newRemapKeys":"162"},{"originalKeys":"91","newRemapKeys":"164"},{"originalKeys":"162","newRemapKeys":"91"}]},"remapShortcuts":{"global":[{"originalKeys":"160;27","newRemapKeys":"160;192"},{"originalKeys":"162;9","newRemapKeys":"164;9"},{"originalKeys":"162;77","newRemapKeys":"91;68"},{"originalKeys":"162;160;9","newRemapKeys":"164;160;9"},{"originalKeys":"162;164;27","newRemapKeys":"164;115"},{"originalKeys":"91;9","newRemapKeys":"162;9"},{"originalKeys":"91;160;9","newRemapKeys":"162;160;9"},{"originalKeys":"91;162;32","newRemapKeys":"91;186"}],"appSpecific":[{"originalKeys":"162;37","newRemapKeys":"164;37","targetApp":"chrome"},{"originalKeys":"162;39","newRemapKeys":"164;39","targetApp":"chrome"},{"originalKeys":"91;32","newRemapKeys":"162;32","targetApp":"code"},{"originalKeys":"91;65","newRemapKeys":"162;65","targetApp":"windowsterminal"},{"originalKeys":"91;67","newRemapKeys":"162;67","targetApp":"windowsterminal"}]}}
@leog101
Copy link

leog101 commented Aug 29, 2024

Screenshot 2024-08-29 143155
Screenshot 2024-08-29 143228
Thanks for the script! but it doesn't work properly for me....
The shortcuts works with the "option" key . Should work with the "command" key
Attached screenshots.
I am using a keyboard on a mac with a windows computer. I want the mac shortcuts.

@vuon9
Copy link
Author

vuon9 commented Aug 29, 2024

@leog101 I couldn't help, this is just my personal note. You may need to revise something or asking questions in https://github.com/microsoft/PowerToys/issues

@kchaitanya863
Copy link

@isaac-deephealth
Copy link

{"remapKeys":{"inProcess":[{"originalKeys":"91","newRemapKeys":"164"},{"originalKeys":"162","newRemapKeys":"91"},{"originalKeys":"164","newRemapKeys":"162"}]},"remapKeysToText":{"inProcess":[]},"remapShortcuts":{"global":[{"originalKeys":"160;27","exactMatch":false,"operationType":0,"newRemapKeys":"160;192"},{"originalKeys":"162;9","exactMatch":false,"operationType":0,"newRemapKeys":"164;9"},{"originalKeys":"162;77","exactMatch":false,"operationType":0,"newRemapKeys":"91;68"},{"originalKeys":"162;2147483687","exactMatch":false,"operationType":0,"newRemapKeys":"164;2147483687"},{"originalKeys":"162;160;9","exactMatch":false,"operationType":0,"newRemapKeys":"164;160;9"},{"originalKeys":"162;18;27","exactMatch":false,"operationType":0,"newRemapKeys":"164;115"},{"originalKeys":"91;9","exactMatch":false,"operationType":0,"newRemapKeys":"162;9"},{"originalKeys":"91;160;9","exactMatch":false,"operationType":0,"newRemapKeys":"162;160;9"},{"originalKeys":"91;162;32","exactMatch":false,"operationType":0,"newRemapKeys":"91;186"}],"appSpecific":[{"originalKeys":"162;2147483685","exactMatch":false,"operationType":0,"newRemapKeys":"164;2147483685","targetApp":"chrome"},{"originalKeys":"91;32","exactMatch":false,"operationType":0,"newRemapKeys":"17;32","targetApp":"code, cursor"},{"originalKeys":"91;65","exactMatch":false,"operationType":0,"newRemapKeys":"162;66","targetApp":"windowsterminal"},{"originalKeys":"91;67","exactMatch":false,"operationType":0,"newRemapKeys":"162;67","targetApp":"windowsterminal"}]},"remapShortcutsToText":{"global":[],"appSpecific":[]}}

@leog101 this is the JSON from your shorcuts they are more accurate if you come from mac as he explained.

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