Skip to content

Instantly share code, notes, and snippets.

@vuon9
Last active November 10, 2024 13:42
Show Gist options
  • Save vuon9/c282c605b35d6d4554a53cfc4afda8ab to your computer and use it in GitHub Desktop.
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"}]}}
@tomredman
Copy link

This is fantastic. Thank you!

@yeonjaee
Copy link

yeonjaee commented Aug 4, 2024

It works. Thank you!

@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

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