ref: 4ceae83df9e48cf3a950365aaf6e31a49cf62cfe
dir: /bin/sizes/
#!/bin/rc screensize=`{echo $vgasize | sed 's/x/ /g'} #screensize=`{file /dev/screen | sed 's/.*size ([^x]+)x([^x]+)/\1 \2/'} # general placements briorect=(0 0 $screensize(1) `{echo $screensize(2) - 16 | pc}) bsamrect=(0 0 $briorect(3) `{echo $briorect(4) - 16 | pc}) # tentative bar(1) placement, which is determined by riostart policy barrect=( \ `{echo $bsamrect(1) - 430 | pc} \ `{echo $bsamrect(2) - 28 | pc} \ $screensize(3) \ $screensize(4) \ ) bcmdrect=( \ 0 \ `{echo $bsamrect(4) - $bsamrect(4) / 3 | pc} \ `{echo $bsamrect(3) / 3 | pc} \ $briorect(4) \ ) # default windows catrect=( \ 0 \ 0 \ 130 \ 296 \ ) volrect=( \ `{echo $catrect(3) - 4 | pc} \ 0 \ 768 \ 114 \ ) kprintrect=( \ $volrect(1) \ `{echo $volrect(4) - 4 | pc} \ $volrect(3) \ `{echo $volrect(4) - 4 + 64 | pc} \ ) statrect=( \ $volrect(1) \ `{echo $kprintrect(4) - 4 | pc} \ $volrect(3) \ $catrect(4) \ ) cmdrect=( \ 0 \ `{echo $catrect(4) - 4 | pc} \ $volrect(3) \ $screensize(2) \ ) riowrect=( \ `{echo $screensize(1) - 100 | pc} \ `{echo $screensize(2) - 28 | pc} \ $screensize(1) \ $screensize(2) \ ) zukerect=( \ `{echo $screensize(1) - 768 | pc} \ 0 \ $screensize(1) \ $screensize(2) \ ) duckrect=( \ `{echo $screensize(1) / 2 | pc} \ 0 \ $screensize(1) \ `{echo $screensize(2) - 256 | pc} \ ) mailrect=( \ 0 \ 0 \ `{echo $briorect(3) / 3 | pc} \ $briorect(4) \ ) # force corner vncrect=( \ `{echo $screensize(1) - 160 | pc} \ 0 \ $screensize(1) \ 64 \ ) ffvncrect=( \ 32 \ 32 \ 1320 \ 1064 \ ) vtrect=( \ 128 \ 0 \ 800 \ $briorect(4) \ ) cat <<! >/tmp/sizes.$sysname screensize=($screensize) barrect=($barrect) briorect=($briorect) bsamrect=($bsamrect) bcmdrect=($bcmdrect) catrect=($catrect) volrect=($volrect) kprintrect=($kprintrect) statrect=($statrect) cmdrect=($cmdrect) riowrect=($riowrect) zukerect=($zukerect) duckrect=($duckrect) mailrect=($mailrect) vncrect=($vncrect) ffvncrect=($ffvncrect) vtrect=($vtrect) !