commit 239abb6c6c294d259d04c314fb61966ea0724bcf parent 3c9b6e370946835d6c8c69a03cab7ea9cf12a425 Author: Jacob R. Edwards <jacob@jacobedwards.org> Date: Sun, 21 Jan 2024 09:53:46 -0800 Add plumbing rules for plan9 plumber Diffstat:
| M | local/Makefile | | | 1 | + |
| A | local/plumber/lib/plumbing | | | 25 | +++++++++++++++++++++++++ |
2 files changed, 26 insertions(+), 0 deletions(-)
diff --git a/local/Makefile b/local/Makefile @@ -13,6 +13,7 @@ mods =\ links\ mmh\ netquery\ + plumber\ rc\ sfeed\ src\ diff --git a/local/plumber/lib/plumbing b/local/plumber/lib/plumbing @@ -0,0 +1,25 @@ +# plumbing rules + +edit = sam +page = mupdf + +# email address +type is text +data matches '(mailto:)?([a-zA-Z0-9_\-]+@[a-zA-Z0-9.]+)' +plumb to mail +plumb start xterm -e mcomp $2 + +# youtube video +type is text +data matches 'https?://www\.youtube\.com/watch\?v=.*' +plumb to watch +plumb start mpv $0 + +# ogg123 +type is text +data matches '.*\.(ogg|opus|flac)' +arg isfile $0 +plumb to audio +plumb start ogg123 $file + +include basic