Hey gang, I am interested in writing a daemon that watches for raw key events so I can detect the F-keys on the console and launch actions. So far the closest thing I found is something like
Curious if you are aware of any better way inside base system (ie, no ports) in order to watch for raw keyboard events?
Also, to clarify, I was looking at snooping the USB events because this should work regardless of whether there is a user logged in, what program is running on the console, etc
usbdump -i usbus2 -v
. I think I can make it work from that, but this seems a bit ugly.Curious if you are aware of any better way inside base system (ie, no ports) in order to watch for raw keyboard events?
Also, to clarify, I was looking at snooping the USB events because this should work regardless of whether there is a user logged in, what program is running on the console, etc