summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Franzke <benjaminfranzke@googlemail.com>2013-01-16 00:07:25 +0100
committerBenjamin Franzke <benjaminfranzke@googlemail.com>2013-01-16 00:07:25 +0100
commitf42d88e0656d7ae69f138f42ecf5018b6d0e5fd3 (patch)
tree481945f2fbd0695ce72ed0672c797a4d433c703b
parente5c145f8c34d0a038962ac618e9bc88ab826629d (diff)
parent2bfd3615bc086f4cac73b5c97ff3d5584eaee9f6 (diff)
downloadmmswe-f42d88e0656d7ae69f138f42ecf5018b6d0e5fd3.tar.gz
mmswe-f42d88e0656d7ae69f138f42ecf5018b6d0e5fd3.tar.bz2
mmswe-f42d88e0656d7ae69f138f42ecf5018b6d0e5fd3.zip
Merge branch 'master' of ssh://git.bnfr.net/git/mmswe
-rwxr-xr-xstart-browser.sh38
1 files changed, 38 insertions, 0 deletions
diff --git a/start-browser.sh b/start-browser.sh
new file mode 100755
index 0000000..75738fb
--- /dev/null
+++ b/start-browser.sh
@@ -0,0 +1,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