
On Tue, Apr 29, 2014 at 11:19 AM, EatsKittens 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,
http://hackage.haskell.org/package/X11/docs/Graphics-X11-Xlib-Misc.html#v:gr...)
for Xlib manpage).
--
brandon s allbery kf8nh sine nomine associates
allbery.b@gmail.com ballbery@sinenomine.net
unix, openafs, kerberos, infrastructure, xmonad http://sinenomine.net