diff options
author | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2013-01-16 00:07:25 +0100 |
---|---|---|
committer | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2013-01-16 00:07:25 +0100 |
commit | f42d88e0656d7ae69f138f42ecf5018b6d0e5fd3 (patch) | |
tree | 481945f2fbd0695ce72ed0672c797a4d433c703b | |
parent | e5c145f8c34d0a038962ac618e9bc88ab826629d (diff) | |
parent | 2bfd3615bc086f4cac73b5c97ff3d5584eaee9f6 (diff) | |
download | mmswe-f42d88e0656d7ae69f138f42ecf5018b6d0e5fd3.tar.gz mmswe-f42d88e0656d7ae69f138f42ecf5018b6d0e5fd3.tar.bz2 mmswe-f42d88e0656d7ae69f138f42ecf5018b6d0e5fd3.zip |
Merge branch 'master' of ssh://git.bnfr.net/git/mmswe
-rwxr-xr-x | start-browser.sh | 38 |
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 |