shithub: rc

Download patch

ref: 10070ded89311ccda509c947f2dd59526ec824d5
parent: 19fad872aacb3011724176d75c60cb7ca0eafcd6
author: sl <sl@x61t>
date: Sat Sep 13 20:09:08 EDT 2025

r: add cases for both bof and rio.themes.

--- a/r
+++ b/r
@@ -1,6 +1,7 @@
 #!/bin/rc
-# 2025-09-13T19:11:20-04:00
-# launch bof.  http://shithub.us/qwx/fork/HEAD/info.html
+# 2025-09-13T20:04:19-04:00
+# bof: http://shithub.us/qwx/fork/HEAD/info.html
+# rio.themes: https://ftrv.se/14
 # copy this file to $home/bin/rc and modify to suit.
 # use with: http://plan9.stanleylieber.com/rc/tobit
 . /$cputype/mkfile
@@ -11,17 +12,16 @@
 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)
+riocmd=(rio.themes)
 switch($*){
+case -b
+	bind $home/lib/rio.theme.black $home/lib/rio.theme
+	riocmd=bof
 case -t
 	bind $home/lib/rio.theme.orig $home/lib/rio.theme
 case -ta
@@ -50,5 +50,9 @@
 	ramfs -m /n/bg &&
 	hget http://bg.stanleylieber.com/img/bg/$riob >/n/bg/$riob &&
 	tobit /n/bg/$riob >/n/bg/bg.img
+}
+if(~ $riocmd bof){
+	aux/stub /dev/theme
+	bind $home/lib/rio.theme /dev/theme
 }
 exec $riocmd -i $home/lib/riostart
--