ref: c1a707427fbbb5129e467516fc671e976ee3e398
dir: /r/
#!/bin/rc # 2025-04-15T21:42:41-04:00 # launch rio. # 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 switch($*){ case -t bind $home/lib/rio.theme.orig $home/lib/rio.theme riocmd=(rio.themes) case -ta bind $home/lib/rio.theme.amber $home/lib/rio.theme riocmd=(rio.themes) case -tf bind $home/lib/rio.theme.fairlight $home/lib/rio.theme riocmd=(rio.themes) case -tg bind $home/lib/rio.theme.green $home/lib/rio.theme riocmd=(rio.themes) case -tmb bind $home/lib/rio.theme.black $home/lib/rio.theme riocmd=(rio.themes) case -tr riocmd=(rio.themes) bind $home/lib/rio.theme.tron $home/lib/rio.theme case -ts riocmd=(rio.themes) 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 rio.themes){ 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