ref: 19fad872aacb3011724176d75c60cb7ca0eafcd6
dir: /r/
#!/bin/rc # 2025-09-13T19:11:20-04:00 # launch bof. http://shithub.us/qwx/fork/HEAD/info.html # copy this file to $home/bin/rc and modify to suit. # use with: http://plan9.stanleylieber.com/rc/tobit . /$cputype/mkfile scr=(`{cat /dev/draw/new >[2]/dev/null}) w=$scr(11) h=$scr(12) switch($w){ case 28* font=/lib/font/contrib.bit/hugevga/unicode.font case 21* 22* 25* #font=/lib/font/contrib.bit/kurinto/kurinto.18.mono.font #font=/lib/font/contrib.bit/gallant/unicode.22.font #font=/lib/font/bit/fixed/unicode.10x20.font #font=/lib/font/bit/lucida/unicode.10.font font=/lib/font/bit/lucidasans/unicode.10.font case * font=/lib/font/bit/vga/unicode.font } truetypefs riocmd=(bof) switch($*){ case -t bind $home/lib/rio.theme.orig $home/lib/rio.theme case -ta bind $home/lib/rio.theme.amber $home/lib/rio.theme case -tbw bind $home/lib/rio.theme.bw $home/lib/rio.theme case -tf bind $home/lib/rio.theme.fairlight $home/lib/rio.theme case -tg bind $home/lib/rio.theme.green $home/lib/rio.theme case -tm bind $home/lib/rio.theme.matrix $home/lib/rio.theme case -tmb bind $home/lib/rio.theme.black $home/lib/rio.theme case -tr bind $home/lib/rio.theme.tron $home/lib/rio.theme case -ts bind $home/lib/rio.theme.sigrid $home/lib/rio.theme case * riocmd=(rio $*) exec $riocmd -i $home/lib/riostart } #exec $riocmd -B <{tobit $riob} -i $home/lib/riostart # old if(~ $riocmd bof){ riob=`{basename `{fortune <{hget http://bg.stanleylieber.com/index}}} ramfs -m /n/bg && hget http://bg.stanleylieber.com/img/bg/$riob >/n/bg/$riob && tobit /n/bg/$riob >/n/bg/bg.img } exec $riocmd -i $home/lib/riostart