xref: /plan9-contrib/usr/glenda/bin/rc/screensize (revision 9a747e4fd48b9f4522c70c07e8f882a15030f964)
1#!/bin/rc
2
3scr=(`{cat /dev/draw/new >[2]/dev/null || status=''})
4wid=$scr(11)
5ht=$scr(12)
6if(test $wid -le 1024)
7	echo small
8if not
9	echo normal
10