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.applescript
somewhere on your machine and make it executable (how to). - Install Karabiner elements .
- Save the
alfred_modal_mode.json
file in~/.config/karabiner/assets/complex_modifications
. - Edit line 15 of the
alfred_modal_mode.json
file, replacingpath/to/alfred_modal_mode.applescript
with the location of the file from step 1 (dont delete the single quotes though). - Import the
alfred_modal_mode.workflow
workflow into Alfred. - Now pressing
control
+option
+shift
+command
+A
will launch a modal menu, and pressing 1 - 9 on your keypad will instantly launch one of the list items.