ref: 050ecc1d5adebfd5fa33a243e151bf364223e845
parent: 01dc43368b70463fd001b30073ed492707e6ae0e
author: qwx <[email protected]>
date: Sun Nov 1 14:18:20 EST 2020
rsam: unstupid namespace and read file list from library
--- a/rsam
+++ b/rsam
@@ -26,10 +26,19 @@
rs=(0 0 1366 625)
rw=(0 224 714 768)
}
-if(! ~ $#r 0){
- unmount /mnt/plumb
- plumber
- window -m -r $r -hide rio -k 'window -m -r '^$"rw^' -scroll; window -m -r '^$"rs^' sam -a '^$"*^' '^$home^'/p/^(not/todo.proj not/todo.sce pitch/pplay.c) '^$home^'/p/notes/net/todo/^(basic daily stack proj/pitch/notes.md proj/sce/notes.md proj/asif/notes.md)^.md '
-}
-if not
+if(~ $#r 0)
exit 'nope, unknown resolution'
+f=()
+if(test -f $home/lib/rsam){
+ f=`{cat $home/lib/rsam}
+ eval 'f=('^$"f^')'
+}
+cat <<! >/env/fuckrc
+unmount /mnt/plumb
+plumber
+rio -k '
+ window -r $rw -scroll
+ window -r $rs sam -a $* $f
+'
+!
+window -m -hide -r $r rc /env/fuckrc