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

Brandon Allbery allbery.b at gmail.com
Tue Apr 29 15:25:22 UTC 2014

On Tue, Apr 29, 2014 at 11:19 AM, EatsKittens <temporalabstraction at gmail.com
> wrote:

> Yes, from within the X server. I've used Xlib in the past but this seemed
> mostly limited to window management and keypresses when a specific terminal
> in which a program is running has focus. I never came across a way to
> simply monitor arbitray keypresses from a background program and take
> action depending on them. For instance running a system command whenever
> ctrl+alt+r is pressed.

You're looking for passive key grabs,
for Xlib manpage).

brandon s allbery kf8nh                               sine nomine associates
allbery.b at gmail.com                                  ballbery at sinenomine.net
unix, openafs, kerberos, infrastructure, xmonad        http://sinenomine.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20140429/075c2e74/attachment.html>

More information about the Haskell-Cafe mailing list