This setup allows one to invoke Alfred to a custom workflow, and remaps the numeric keypad's numbers to include the command modifier. This way Alfred can be used as a quick modal menu requiring only 2 single keystrokes to execute a list item.
How to get it working:
- Save the
alfred_modal_mode.applescriptsomewhere on your machine and make it executable (how to). - Install Karabiner elements .
- Save the
alfred_modal_mode.jsonfile in~/.config/karabiner/assets/complex_modifications. - Edit line 15 of the
alfred_modal_mode.jsonfile, replacingpath/to/alfred_modal_mode.applescriptwith the location of the file from step 1 (dont delete the single quotes though). - Import the
alfred_modal_mode.workflowworkflow into Alfred. - Now pressing
control+option+shift+command+Awill launch a modal menu, and pressing 1 - 9 on your keypad will instantly launch one of the list items.