File: run

package info (click to toggle)
xmacro 0.3pre-20000911-6
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd, wheezy
  • size: 156 kB
  • ctags: 68
  • sloc: cpp: 1,484; makefile: 69; sh: 10
file content (42 lines) | stat: -rwxr-xr-x 909 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
mydisp=:5.0

if [ $# -lt 1 ]
then
	echo 'Usage: run <startvfb|stopvfb|rec|play|look|control>'
	exit
fi

case $1 in
	startvfb)
		Xvfb $mydisp -ac -fbdir /tmp -screen 0 800x600x8 &
#		Xvfb $mydisp -fbdir /tmp -screen 0 1024x768x8 &
		icewm -display $mydisp &
#		xmodmap -display $mydisp /usr/X11R6/lib/X11/xmodmap.std
#		/home/keresztg/X/swm-1.0a/usr/X11R6/bin/swm -display $mydisp &
		;;
	stopvfb)
		killall Xvfb
		;;
	rec)
		if [ $# != 2 ]
		then
			echo 'Usage: run rec <output file>'
			exit
		fi
		(xv -geometry +0+0 -nodecor -wait 2 -wloop /tmp/Xvfb_screen0 &) ; ./xmacrorec -k 110 $mydisp > $2
		;;
	play)
		if [ $# != 2 ]
		then
			echo 'Usage: run play <input file>'
			exit
		fi
		./xmacroplay $mydisp < $2
		;;
	look)
		xv -geometry +0+0 -nodecor -wait 2 -wloop /tmp/Xvfb_screen0
		;;
	control)
		(xv -geometry +0+0 -nodecor -wait 2 -wloop /tmp/Xvfb_screen0 &) ; ./xmacrorec -k 110 $mydisp
		;;
esac