File: startmplayer

package info (click to toggle)
fvwm-crystal 3.4.1%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: buster, stretch
  • size: 21,700 kB
  • ctags: 1,494
  • sloc: sh: 3,265; cs: 1,335; python: 875; makefile: 214
file content (13 lines) | stat: -rwxr-xr-x 544 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/bash
# Support for MPlayer(2) media players into Fvwm-Crystal
# Written by: Dominique Michel <dominique_libre@users.sourceforge.net> 2013

# We need a helper script in order to know mplayer process id.
# This is used kill the instance(s) started by Crystal.

# Usage: Exec exec $[FVWM_SYSTEMDIR]/scripts/startmplayer mplayer|mplayer2 $[infostore.USERDIR] $[infostore.SILENT]

$1 -ao jack, -fs -fixed-vo -slave -idle -capture -input file=/home/$2/.mplayer/pipe $3 &

FvwmCommand "InfoStoreAdd MplayerPid $!"
touch /tmp/crystal_mplayer_$!