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
rulesobject from below snippet and add it withinprofiles.complex_modifications. The basic structure of yourkarabiner.jsonfile should look something like this: