ref: 5bd6573cc5519ae54ee4132758602dc54c38c804
parent: 0396ca797c409832c854933f3673eb64aa1998e3
author: qwx <qwx@sciops.net>
date: Thu Mar 3 02:10:33 EST 2022
add workspace scripts
--- /dev/null
+++ b/bin/work/ger
@@ -1,0 +1,23 @@
+#!/bin/rc
+rfork ne
+
+. /tmp/sizes.$sysname
+
+unmount /mnt/plumb
+plumbsrv=()
+plumber -s plumb.$pid
+
+cd $home/p/sm2/ger
+cat <<! >/tmp/work.$pid
+#!/bin/rc
+#window 'netsurf https://www.dw.com/de/themen/wissen-umwelt/s-12296'
+window -r $zukerect page /lib/books/german/AFoundationCourseInReadingGerman.pdf
+window -r $bcmdrect -scroll
+window -r $duckrect 'mothra http://dict.cc'
+!
+chmod +x /tmp/work.$pid
+rio -i /tmp/work.$pid
+rm /tmp/work.$pid
+
+unmount /mnt/plumb
+rm /srv/plumb.$pid
--- /dev/null
+++ b/bin/work/monitoring
@@ -1,0 +1,21 @@
+#!/bin/rc
+rfork ne
+
+. /tmp/sizes.$sysname
+unmount /mnt/plumb
+plumbsrv=()
+plumber -s plumb.$pid
+
+cat <<! >/tmp/work.$pid
+#!/bin/rc
+window -r $ffvncrect v kekw
+window -r $duckrect tx hsw
+#window -r $cmdrect tx t30
+window -r $cmdrect tx kekw
+!
+chmod +x /tmp/work.$pid
+rio -i /tmp/work.$pid
+rm /tmp/work.$pid
+
+unmount /mnt/plumb
+rm /srv/plumb.$pid
--- /dev/null
+++ b/bin/work/music
@@ -1,0 +1,22 @@
+#!/bin/rc
+rfork ne
+
+. /tmp/sizes.$sysname
+cd /lib/m
+#audio/mixfs
+unmount /mnt/plumb
+plumbsrv=()
+plumber -s plumb.$pid
+
+cat <<! >/tmp/work.$pid
+#!/bin/rc
+window -r $volrect volume
+window -r $bcmdrect -scroll
+window -scroll -r $zukerect 'label zuke; rc'
+!
+chmod +x /tmp/work.$pid
+rio -i /tmp/work.$pid
+rm /tmp/work.$pid
+
+unmount /mnt/plumb
+rm /srv/plumb.$pid
--- /dev/null
+++ b/bin/work/proj
@@ -1,0 +1,32 @@
+#!/bin/rc
+rfork ne
+
+. /tmp/sizes.$sysname
+f=()
+if(test -f $home/lib/rsam){
+ f=`{cat $home/lib/rsam}
+ eval 'f=('^$"f^')'
+}
+unmount /mnt/plumb
+plumber -s plumb.$pid
+
+cat <<! >/tmp/work.$pid
+#!/bin/rc
+window -r $bcmdrect -scroll
+#window -r 530 270 1401 1175 mothra #https://ocaml.org/learn/tutorials/
+#plumb /lib/books/doomrpg/decoding.doomrpg.pdf!8
+#plumb /lib/books/Sanglard/sanglard.game.engine.black.book.doom.v1.1.pdf!209
+#plumb /lib/books/algorithms/albertetal.cours.et.exercices.dinformatique.pdf!12
+#plumb /lib/books/specs/igfx/kbl/intel-gfx-prm-osrc-kbl-vol12-display.pdf!126
+#plumb /lib/books/specs/igfx/hsw/intel-gfx-prm-osrc-hsw-display.pdf!171
+#plumb /lib/books/gameai/millington.artificial.intelligence.for.games.pdf
+#plumb /lib/books/maths/lengyel.mathematics.for.3d.game.programming.and.computer.graphics.pdf
+window -r $bsamrect jam -a $f
+!
+chmod +x /tmp/work.$pid
+rio -i /tmp/work.$pid
+
+rm /tmp/work.$pid
+unmount /mnt/plumb
+rm /srv/plumb.$pid
+exit
--- /dev/null
+++ b/bin/work/social
@@ -1,0 +1,19 @@
+#!/bin/rc
+rfork ne
+
+. /tmp/sizes.$sysname
+unmount /mnt/plumb
+plumber -s plumb.$pid
+
+cat <<! >/tmp/work.$pid
+#!/bin/rc
+window -r $mailrect mw
+window -r $vncrect v aib
+!
+chmod +x /tmp/work.$pid
+rio -i /tmp/work.$pid
+
+rm /tmp/work.$pid
+unmount /mnt/plumb
+rm /srv/plumb.$pid
+exit
--- /dev/null
+++ b/bin/work/stream
@@ -1,0 +1,32 @@
+#!/bin/rc
+rfork ne
+
+. /tmp/sizes.$sysname
+# /lib/books/doomrpg/doom-rpg-bnf.txt \
+f=( \
+ $home/p/notes/net/todo/^(9front/igfx/stack)^.md \
+ $home/p/notes/net/todo/proj/^(sce/gather sce/pathfinding asif/path)^.md \
+)
+unmount /mnt/plumb
+plumber -s plumb.$pid
+
+cat <<! >/tmp/work.$pid
+#!/bin/rc
+window -r $bcmdrect -scroll
+#window -r $duckrect mothra
+#plumb /lib/books/doomrpg/decoding.doomrpg.pdf!8
+#plumb /lib/books/Sanglard/sanglard.game.engine.black.book.doom.v1.1.pdf!209
+#plumb /lib/books/algorithms/albertetal.cours.et.exercices.dinformatique.pdf!12
+#plumb /lib/books/specs/igfx/kbl/intel-gfx-prm-osrc-kbl-vol12-display.pdf!126
+#plumb /lib/books/specs/igfx/hsw/intel-gfx-prm-osrc-hsw-display.pdf!171
+#plumb /lib/books/gameai/millington.artificial.intelligence.for.games.pdf
+#plumb /lib/books/maths/lengyel.mathematics.for.3d.game.programming.and.computer.graphics.pdf
+window -r $bsamrect jam -a $f
+!
+chmod +x /tmp/work.$pid
+rio -i /tmp/work.$pid
+
+rm /tmp/work.$pid
+unmount /mnt/plumb
+rm /srv/plumb.$pid
+exit
--- /dev/null
+++ b/bin/work/work
@@ -1,0 +1,32 @@
+#!/bin/rc
+rfork ne
+
+. /tmp/sizes.$sysname
+m=hsw
+w=tcp!$m!17060
+root=/n/ssh/tr
+wdir=$root/p/tsfs/software
+
+sshfs $w || exit
+cd $wdir
+unmount /mnt/plumb
+plumbsrv=()
+plumber -s plumb.$pid
+f=(`{walk src | grep \.rs} ../../^(rs.notes todo))
+
+cat <<! >/tmp/work.$pid
+#!/bin/rc
+#window -r $bcmdrect -scroll
+#window -r $bsamrect 'echo 4 >/env/tabstop; jam -ia $f'
+#window -r $duckrect tx $m
+window -r $bsamrect 'jam -ia $f'
+window -r 554 742 1194 -scroll 1179
+window -r 4 4 783 1178 tx $m
+!
+chmod +x /tmp/work.$pid
+rio -i /tmp/work.$pid
+rm /tmp/work.$pid
+
+unmount /n/ssh
+unmount /mnt/plumb
+rm /srv/plumb.$pid