ref: 05a33d2b96dd04e4a0ce59d5058a913271c7fd23
parent: 47701ae18f8896ec53fe9d18d53c23c35221cdaf
author: sl <sl@x1tit>
date: Sat Aug 16 20:36:57 EDT 2025
r: add case: -tm
--- a/r
+++ b/r
@@ -1,5 +1,5 @@
#!/bin/rc
-# 2025-08-16T20:17:31-04:00
+# 2025-08-16T20:35:02-04:00
# launch rio.
# copy this file to $home/bin/rc and modify to suit.
# use with: http://plan9.stanleylieber.com/rc/tobit
@@ -20,30 +20,25 @@
font=/lib/font/bit/vga/unicode.font
}
truetypefs
+riocmd=(rio.themes)
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 -tbw
bind $home/lib/rio.theme.bw $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 -tm
+ bind $home/lib/rio.theme.matrix $home/lib/rio.theme
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 $*)
@@ -52,7 +47,7 @@
#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
+ ramfs -m /n/bg &&
hget http://bg.stanleylieber.com/img/bg/$riob >/n/bg/$riob &&
tobit /n/bg/$riob >/n/bg/bg.img
}
--
⑨