| 1 |
#!/bin/bash |
| 2 |
# Support for MPlayer(2) media players into Fvwm-Crystal |
| 3 |
# Written by: Dominique Michel <[email protected]> 2013 |
| 4 |
|
| 5 |
# We need a helper script in order to know mplayer process id. |
| 6 |
# This is used kill the instance(s) started by Crystal. |
| 7 |
|
| 8 |
# Usage: Exec exec $[FVWM_SYSTEMDIR]/scripts/startmplayer mplayer|mplayer2 $[infostore.USERDIR] $[infostore.SILENT] |
| 9 |
|
| 10 |
$1 -ao jack, -fs -fixed-vo -slave -idle -capture -input file=/home/$2/.mplayer/pipe $3 & |
| 11 |
|
| 12 |
FvwmCommand "InfoStoreAdd MplayerPid $!" |
| 13 |
touch /tmp/crystal_mplayer_$! |