shithub: rc

ref: 227f873058da9b5c099b6fde577d8980bad7364a
dir: /bin/k/

View raw version
#!/bin/rc
if(! ~ $#* 1 || ! test -f /bin/work/$1){
	echo usage: $0 workspace >[1=2]
	exit usage
}
. /tmp/sizes.$sysname
x=/bin/work/$1
window -hide -r $briorect $x
sleep 2
last=`{cd /dev/wsys; ls | sort -n | tail -1}
echo -n `{basename $x} >/dev/wsys/$last/label