[Haskell-cafe] How to create a background program that monitors input (linux)

Niklas Hambüchen mail at nh2.me
Tue Apr 29 15:13:16 UTC 2014


Do you wish to do that in an active Xorg GUI session?

If yes, the X API (and corresponding Haskell packages) will allow you 
to do that; otherwise you usually have to read directly from the device 
files (e.g. /dev/input*) which usually requires root.

On Tue 29 Apr 2014 15:55:00 BST, EatsKittens wrote:
> Essentially, I want to create a program that is simply ran in the
> background, not in a terminal, that monitors keypresses and mouse
> presses and takes certain actions on specific keypresses. Where to start?



More information about the Haskell-Cafe mailing list