diff options
author | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2013-01-15 23:36:34 +0100 |
---|---|---|
committer | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2013-01-15 23:36:34 +0100 |
commit | 2bfd3615bc086f4cac73b5c97ff3d5584eaee9f6 (patch) | |
tree | fcf29f17d1fb764570bc5e73ffe71e9485759680 | |
parent | 8292ca8766dd38aba3701ce6e241b7893c1e308a (diff) | |
download | mmswe-2bfd3615bc086f4cac73b5c97ff3d5584eaee9f6.tar.gz mmswe-2bfd3615bc086f4cac73b5c97ff3d5584eaee9f6.tar.bz2 mmswe-2bfd3615bc086f4cac73b5c97ff3d5584eaee9f6.zip |
Add script to start 3 browser
Using surf-browser.
-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 |