DEV Community

Rafkat Galiullin
Rafkat Galiullin

Posted on

How to remap the F4 key to Launchpad from Spotlight automatically on start

Place code below to ~/Library/LaunchAgents/com.local.KeyRemapping.plist, if file not exist's you should create it.

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "">
<plist version="1.0">
              "HIDKeyboardModifierMappingSrc": 0xC00000221,
              "HIDKeyboardModifierMappingDst": 0x0C000002A2
Enter fullscreen mode Exit fullscreen mode

Restart your Mac and enjoy it!

Top comments (1)

jhoow profile image

works like a charm for the magic keyboard with Touch ID. Thanks!