I use Raspbian lite. I'm trying to map a hotkey to start the service or a script. I do not use a graphical user interface, only a text console with a local attached display. I'm not using ssh.
I tried using xbindkeys, but:
> xbindkeys -k
Could not open display, check shell DISPLAY variable, and export or setenv it!
How can I map a key to start a script?