summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Franzke <benjaminfranzke@googlemail.com>2013-01-15 23:36:34 +0100
committerBenjamin Franzke <benjaminfranzke@googlemail.com>2013-01-15 23:36:34 +0100
commit2bfd3615bc086f4cac73b5c97ff3d5584eaee9f6 (patch)
treefcf29f17d1fb764570bc5e73ffe71e9485759680
parent8292ca8766dd38aba3701ce6e241b7893c1e308a (diff)
downloadmmswe-2bfd3615bc086f4cac73b5c97ff3d5584eaee9f6.tar.gz
mmswe-2bfd3615bc086f4cac73b5c97ff3d5584eaee9f6.tar.bz2
mmswe-2bfd3615bc086f4cac73b5c97ff3d5584eaee9f6.zip
Add script to start 3 browser
Using surf-browser.
-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