This is useful for changing the default F4 key that is bound to Spotlight to launch Alfred in macOS Big Sur.
Setup:
- Make sure you have Karabiner installed.
- Open
~/.config/karabiner/karabiner.json
. - Copy the
rules
object from below snippet and add it withinprofiles.complex_modifications
. The basic structure of yourkarabiner.json
file should look something like this: