Simple Alfred Script to toggles Function Keys in OSX Catalina using Apple Script
Download Toggle Function Keys.alfredworkflow. Open file and import into Alred.
Use fn toggle
as keyword to trigger the toggle.
Or from command line
# bash
osascript ToggleFunction.scpt