blob: 75738fbe3fc9153d4fefcf31991b8bd84b05350b (
plain)
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
|
#!/bin/sh
url=http://et.hs-wismar.de/~infosc/index.php?file=config16n
idfile1=`mktemp`
idfile2=`mktemp`
idfile3=`mktemp`
cleanup()
{
rm $idfile1
rm $idfile2
rm $idfile3
}
control_c()
{
cleanup
exit $?
}
trap control_c INT
xrandr --fb 4000x768
surf -x "$url" > "$idfile1" 2>/dev/null &
surf -x "$url" > "$idfile2" 2>/dev/null &
surf -x "$url" > "$idfile3" 2>/dev/null &
sleep 6
wmctrl -i -r "$(cat $idfile1)" -e 0,0,30,1280,720
wmctrl -i -r "$(cat $idfile2)" -e 0,1285,30,1280,720
wmctrl -i -r "$(cat $idfile3)" -e 0,$((1280*2+10)),30,1280,720
wait
cleanup
|