plumbing extension

sqweek sqweek at gmail.com
Wed Oct 24 16:13:51 CEST 2007


 Probably very few people here are familiar with plumbing, but I've
written an urxvt extension to tie in with the plumber from p9p[1].
It's available at http://sqweek.dnsdojo.org/wmii/plumb.txt (.txt
because lighttpd sucks).
 Briefly, the plumber is an IPC daemon which waits for plumbing
messages (which are generally plaintext), and delivers them to named
"ports" according to some customisable rules (eg, if the plumbed data
matches http://.* it will deliver the message to the "web" port, or if
nothing is listening on that port start up a browser). The plumbing
request also includes a working directory, so you can plumb strings
like "foo.c:44" to open foo.c in the current directory at line 44.
 So using this extension, you can plumb the current selection with a
right click (I don't find the standard right click selection semantics
useful, obviously), or if there is no selection it will plumb the
whitespace delimited word you right click on. Also, you need to have
your shell set the window title following the p9p convention[2] for
the extension to pick up your working directory, see the comments for
details.
 Enjoy.
-sqweek

[1] http://plan9.us
[2] /home/sqweek/-nightingale




More information about the rxvt-unicode mailing list