I have been learning about daemons and writing them in C. I want to make the daemon receive the global key press signals in Ubuntu, and write the received key-presses to a separate file.Is there any way that be achieved?  If so, how?
Sending key press signals to a background process
keyboard