# to update: cp /usr/$user/lib/plumbing /mnt/plumb/rules editor=sam browser=mothra #include basic addrelem='((#?[0-9]+)|(/[A-Za-z0-9_\^]+/?)|[.$])' addr=:($addrelem([,;+\-]$addrelem)*) plumb to seemail plumb to showmail plumb to msword plumb to sendmail plumb to image plumb to postscript plumb to edit plumb to none plumb to web type is text data matches '(https?|ftp|file|gopher|mailto|news|nntp|telnet|wais|prospero)://[a-zA-Z0-9_@\-]+([.:][a-zA-Z0-9_@\-]+)*/?[a-zA-Z0-9_?.,%#~&/\-+=]+([:.][a-zA-Z0-9_?,%#~&/\-+=]+)*\.(jpe?g|JPE?G|gif|GIF|ps|PS|pdf|PDF|png|PNG)' plumb start rc -c 'hget '''$0''' | page -w' type is text data matches '[a-zA-Z¡-￿0-9_\-./]+' data matches '([a-zA-Z¡-￿0-9_\-./]+)\.rtf' arg isfile $0 plumb to msword plumb start wdoc2txt $file type is text dst is msword plumb to msword plumb start wdoc2txt $file type is text data matches '[a-zA-Z0-9_+.\-]+@[a-zA-Z0-9_+.\-]*' plumb to sendmail plumb start window rc -c '''echo % mail '''$0'; mail '$0 type is text data matches '[a-zA-Z¡-￿0-9_\-./]+' data matches '([a-zA-Z¡-￿0-9_\-./]+)\.(jpe?g|JPE?G|gif|GIF|tiff?|TIFF?|ppm|PPM|bit|BIT|png|PNG|pgm|PGM|bmp|BMP|yuv|YUV)' arg isfile $0 plumb to image plumb client page -wi type is text data matches '[a-zA-Z¡-￿0-9_\-./]+' data matches '([a-zA-Z¡-￿0-9_\-./]+)\.(ps|PS|eps|EPS|pdf|PDF|dvi|DVI|doc|DOC)' arg isfile $0 plumb to postscript plumb start page -w $file type is text data matches '([.a-zA-Z¡-￿0-9_/+\-]*[a-zA-Z¡-￿0-9_/+\-])('$addr')?' arg isfile $1 data set $file attr add addr=$3 plumb to edit plumb client window $editor type is text data matches '([a-zA-Z¡-￿0-9]+\.h)('$addr')?' arg isfile /sys/include/$1 data set $file attr add addr=$3 plumb to edit plumb client window $editor type is text data matches '([a-zA-Z¡-￿0-9]+\.m)('$addr')?' arg isfile /usr/inferno/module/$1 data set $file attr add addr=$3 plumb to edit plumb client window $editor type is text data matches '[a-zA-Z¡-￿0-9_\-./]+' data matches '/mail/fs/[a-zA-Z¡-￿0-9/]+/[0-9]+' plumb to showmail plumb start window -r 4 120 750 600 upas/nedmail -s $0 type is text data matches '([a-zA-Z¡-￿0-9_\-./]+)\(([1-8])\)' plumb start rc -c 'man -b '$2' '$1' dst is image plumb to image plumb client page -wi dst is postscript arg isfile $data plumb start page -w $data type is text data matches 'Local (.*)' plumb to none plumb start rc -c $1 type is text data matches 'https?://[w]*.?youtube.com.*' plumb to none plumb start openssh/ssh stanleylieber@holon open ''$0'' type is text data matches 'https?://.*.(aif|m4v|mov|mp4|mpg|mpeg)' plumb to none plumb start openssh/ssh stanleylieber@holon open ''$0'' type is text data matches 'https?://.*.(flac|mp3|wav)' plumb to none plumb start window play ''$0'' #type is text #data matches 'https?://9fans.net/archive/.*' #plumb to web #plumb client window -dx 900 -dy 800 abaco >>[2]/sys/log/abaco #type is text #data matches 'https?://[a-zA-Z0-9_@\-]+([.:][a-zA-Z0-9_@\-]+)*/?[a-zA-Z0-9_@?,%#~&/\-+=]+([:.][a-zA-Z0-9_@?,''%#~&/\-+=;]+)*' #plumb to none #plumb start pb 'export DISPLAY=:0; chrome --new-tab ' ''$0'' ' >/dev/null 2>&1' >/dev/null >[2=1] #type is text #data matches 'https?://[a-zA-Z0-9_@\-]+([.:][a-zA-Z0-9_@\-]+)*/?[a-zA-Z0-9_@?,%#~&/\-+=]+([:.][a-zA-Z0-9_@?,''%#~&/\-+=;]+)*' #plumb to none #plumb start linux -u 1000 -g 1000 -r ./mroot /usr/bin/opera --newtab ''$0'' type is text data matches 'https?://[a-zA-Z0-9_@\-]+([.:][a-zA-Z0-9_@\-]+)*/?[a-zA-Z0-9_@?,%#~&/\-+=]+([:.][a-zA-Z0-9_@?,''%#~&/\-+=;]+)*' plumb to none plumb start openssh/ssh stanleylieber@holon open ''$0''