5.5 Key5.5.1 Stop Xnee with key
You can stop xnee by specifying a key. Make sure that this key isn’t grabbed by another
X client (e.g by the Window Manager). Let’s say that you want Xnee to stop recording if
you press Control and h.
cnee --record --mouse --events-to-record -1 --stop-key h
This will make xnee record mouse events until you press h. All printouts are done to
stdout so you can see that Xnee stops when you press the key.
Move your mouse for a while and you’ll see xnee print out lots of lines.
Press h.