🚀 Live Demo 🚀 Use an AKAI MPK Mini (keyboard keys and drum pads) as macOS hotkeys.
Start with open Chrome. Screenshot and Finder actions are already available to bind next.
python3.11 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txtPlug in the MPK Mini. See commands, options, and actions:
python -m midi_hotkey helpList devices:
python -m midi_hotkey devicespython -m midi_hotkey learn --action open_chromePress the pad or key you want. The note/channel is saved in config.json.
Foreground (Terminal stays open):
python -m midi_hotkey runBackground, with an easy start/stop:
python -m midi_hotkey start
python -m midi_hotkey status
python -m midi_hotkey stopStart automatically at login:
python -m midi_hotkey install-loginCreate a double-click app in this project folder (Finder will open on it). Copies also go to ~/Applications and /Applications when possible — drag that to the Dock:
python -m midi_hotkey install-appOr double-click scripts/Start MidiHotkey.command.
Press a bound pad — the mapped app should come to the front (or launch).
See current bindings and which actions are still unbound:
python -m midi_hotkey listTo see raw MIDI note numbers without firing actions:
python -m midi_hotkey watch| Action | What it does |
|---|---|
open_chrome |
Opens Google Chrome |
open_finder |
Opens Finder |
open_cursor |
Opens Cursor |
open_cursor_launcher |
Opens the CursorLauncher PWA (/Applications/CursorLauncher.app) |
open_local_player |
Opens the Local Player PWA |
take_screenshot |
Interactive screenshot to clipboard (screencapture -i -c) |
macOS may prompt for Input Monitoring or Accessibility the first time MIDI or screenshot tools run. Allow the Terminal (or whatever app launched the script).
