#!/bin/rc # 2020-04-19T21:17:44-04:00 # Open rio windows in middle of the screen. rfork e scr=(`{cat /dev/draw/new >[2]/dev/null}) w=$scr(11) h=$scr(12) fn go{ window -scroll -r $1 $2 $3 $4 'label sam; sam `{cat $home/src/edit}' for(i in `{grep -v -e '^#' $home/src/read}) plumb $"i } if(~ $w 1024 && ~ $h 768) go 2 39 1022 768 if not if(~ $w 1280 && ~ $h 800) go 2 39 1280 800 if not if(~ $w 1280 && ~ $h 1024) go 261 0 980 1024 if not if(~ $w 1366 1376 && ~ $h 768) go 253 0 1051 768 if not if(~ $w 1400 1408 && ~ $h 1050) go 276 0 1074 1050 if not if(~ $w 1440 && ~ $h 900) go 297 0 1104 900 if not if(~ $w 1600 && ~ $h 900) go 408 0 1210 900 if not if(~ $w 1600 2966 && ~ $h 1200) go 342 0 1210 1200 if not if(~ $w 1680 1696 && ~ $h 1050) go 406 0 1274 1050 if not if(~ $w 1920 1918 && ~ $h 1080 1078) go 225 0 1653 1080