Plan 9 from Bell Labs’s /usr/web/sources/contrib/sl/rc/mo

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


#!/bin/rc
# launch some mothras
rfork e
scr=(`{cat /dev/draw/new >[2]/dev/null})
w=$scr(11)
h=$scr(12)
if(grep -s wayport.net /net/ndb)
	verso=http://wikipedia.org
if not
	verso=http://tumblr.stanleylieber.com
recto=http://img.stanleylieber.com
spread=http://read.stanleylieber.com
if(~ $w 640 && ~ $h 480){
	# nothing to see here
}
if not if(~ $w 1022 && ~ $h 768){
	window -r 361 0 1022 768 mothra -a $recto
	window -r 2 0 616 768 mothra -a $verso
	window -r 146 0 892 768 mothra -a $spread
}
if not if(~ $w 1280 && ~ $h 800){
	window -r 501 0 1279 800 mothra -a $recto/login
	window -r 2 0 778 800 mothra -a $verso
	window -r 205 0 1018 800 mothra -a $spread
}
if not if(~ $w 1280 && ~ $h 1024){
	window -r 636 0 1279 1024 mothra -a $recto
	window -r 302 0 946 1024 mothra -a $spread
	window -r 2 0 640 1024 mothra -a $verso
}
if not if(~ $w 1376 && ~ $h 768){
	window -r 674 0 1365 768 mothra -a $recto
	window -r 2 0 678 768 mothra -a $verso
	window -r 312 0 1008 768 mothra -a $spread
}
if not if(~ $w 1408 && ~ $h 1050){
	window -r 682 0 1400 1050 mothra -a $recto
	window -r 2 0 720 1050 mothra -a $verso
	window -r 321 0 1039 1050 mothra -a $spread
}
if not if(~ $w 1440 && ~ $h 900){
	window -r 716 0 1439 900 mothra -a $recto
	window -r 2 0 720 900 mothra -a $verso
	window -r 297 0 1104 900 mothra -a $spread
}
if not if(~ $w 1600 && ~ $h 1200){
	window -r 794 0 1598 1200 mothra -a $recto
	window -r 2 0 800 1200 mothra -a $verso
	window -r 342 0 1210 1200 mothra -a $spread
}
if not if(~ $w 1680 1696 && ~ $h 1050){
	window -r 836 0 1678 1050 mothra -a $recto
	window -r 2 0 840 1050 mothra -a $verso
	window -r 418 0 1261 1050 mothra -a $spread
}
if not if(~ $w 1920 && ~ $h 1080){
	window -r 276 39 1632 1080 mothra -a $recto
	window -r 2 0 927 1080 mothra -a $verso
	window -r 465 0 1394 1080 mothra -a $spread
}

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to [email protected].