koekeishiya / skhd

Simple hotkey daemon for macOS
MIT License
6.07k stars 204 forks source link

Is it possible to give an argument to shell script run with a hotkey? #282

Closed blairduncanljmu closed 1 year ago

blairduncanljmu commented 1 year ago

I have a shell script that contains a case statement and I would like to assign hotkeys such as alt - n or alt - p which run the script with n or p respectively as the argument which is used as the key for the case statement. Is this possible?