diff options
-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 |