#!/bin/rc rfork e scr=(`{cat /dev/draw/new >[2]/dev/null || status=''}) height=$scr(12) y1=`{echo 'int(' $height '*' 0.12 ')' | hoc} y2=`{echo 'int(' $height '*' 0.3 ')' | hoc} y3=`{echo 'int(' $height '*' 0.7 ')' | hoc} width=$scr(11) x1=`{echo 'int(' $width '*' 0.1 ')' | hoc} x2=`{echo $x1 + 1 | hoc} x3=`{echo 'int(' $x2 + '(' $width '*' 0.5 '))' | hoc} x4=`{echo $x3 + 1 | hoc} x6=`{echo $width - $y1 | hoc} x5=`{echo $x6 - 1 | hoc} x7=`{echo $width - 1 | hoc} if(~ $service terminal) auth/fgui & if(~ $service terminal && ! ~ $#cpu 0) window -r 0 0 $x1 $y1 stats -lmei $sysname $cpu if not window -r 0 0 $x1 $y1 stats -lmei window -r $x2 0 $x3 $y1 faces -i if(cat /dev/volume >[2] /dev/null) window -r $x4 0 $x5 $y1 audio/tuner window -r $x6 0 $x7 $y1 clock window -r $x2 $y2 $x3 $y3 logwin