I've created a new universal module (mod_pipe) to pipe events to other programs by means of stdout/stdin. This way it's possible to control many programs with paus like mplayer in -slave mode or mpg123, or xmms.
(look at the mplayerbox script for an example)