I need a script, that will run in terminal (under X11), and wait for a keyboard shortcut (happening anywhere in the desktop environment), once that shortcut (or key press sequence) happens, it will terminate with return code = 0.PS: I need this to tell byzanz when to stop recording my desktop.Possible candidates to use in that script are xev and xinput but I can't figure out how to put things together. Ie. xinput seems promising, but it's making me specify the device, which I want to happen automatically, and I don't know how to use it in a script that will terminate once a sequence on the output is found.
How to capture a keyboard shortcut
x11;keyboard;input