Skip to content

Instantly share code, notes, and snippets.

@vuon9
Last active January 18, 2026 21:55
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"}]}}
@arvid-berndtsson

Copy link
Copy Markdown

Really nice! Thank you so much! 😄

@wllp

wllp commented Apr 12, 2024

Copy link
Copy Markdown

Hey, I just installed, and it seems to be working well so far. I also swapped the keycaps on the board so I can remember witch is witch now. The only think I added so far was add back in a way to press "ctrl tab" I don't use it much but its a hot key to do something like change browser tab. As it was it currently acted like a second alt tab for changing Programs. Mostly though it was just for me to proof of concept making and editing on my own. Thanks for these though should provide a good base.

@tomredman

Copy link
Copy Markdown

This is fantastic. Thank you!

@yeonjaee

yeonjaee commented Aug 4, 2024

Copy link
Copy Markdown

It works. Thank you!

@leog101

leog101 commented Aug 29, 2024

Copy link
Copy Markdown

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

vuon9 commented Aug 29, 2024

Copy link
Copy Markdown
Author

@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
Copy Markdown

@isaac-deephealth

Copy link
Copy Markdown
{"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