[MPlayer-users] Binding keys to mplayer?

Jan Knutar jknutar at nic.fi
Sat Aug 21 19:54:03 CEST 2004


On Friday 20 August 2004 10:03, Jesse F. Hughes wrote:

> What I'm after: 
> 
>     * In the term in which mplayer starts, the usual keybindings
>       apply.
> 
>    * Additionally, some useless key (say PrintScreen) is bound in X so
>      that hitting it toggles play/pause for whatever mplayer is
>      running.

Hi

I built a remote control receiver out of a dead satellite receiver box, and hooked
it up to a computer, wrote own drivers and such for it, and this is how I solved
the problem of sending commands to mplayer..

First, I have a fifo in ~/ called mplayerctrl
Then, in ~/.mplayer/config, I have this line:
input= file=/home/jan/mplayerctrl

Replace path with your own, etc...

To demonstrate the functionality, you could for example do
echo PAUSE >~/mplayerctrl


In some older Gnome enviroment I had some extra buttons on my keyboard
hooked up to execute commands as well and send them to mplayer, but
recent Gnome in its glorious new user friendliness, I find no way of doing
this at a quick glance. :-(

Hope this helps, though!




More information about the MPlayer-users mailing list