FVWM: another improvement to the netscape script...

From: Stephen Riehm <Stephen.Riehm_at_PC-Plus.DE>
Date: Tue, 3 Jun 1997 13:26:47 +0200 (MEZ)

Hi Again,

here's a little addition to yesterday's script which helps the script
decide if you really intended to use the current selection or not. I
noticed this because the current selection remains, even after the
window you selected stuff in is long gone.

So if you change the xcb line to be:

    url=`xcb -S 0 && xcb -p 0 | perl -ne 'if(m,(\w+://\S+),){print $1;exit}'`

then the perl script will only give back the URL, which I have defined
to be anything with the string "://" in it - delemited by whitespace.
It also only prints the first url found, in case there are multiples
in there.

Happy zapping :-)

Steve
_______________________________ ._ o ________________________________
// Stephen Riehm / //\. Stephen.Riehm_at_pc-plus.de
\\\\ pc-plus ' \>> | Phone: +49 89 45566 148
//// 81539 Munich, Germany \\ ` Fax: +49 89 45566 113
  \\
--
Visit the official FVWM web page at <URL:http://www.hpc.uh.edu/fvwm/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to majordomo_at_hpc.uh.edu.
To report problems, send mail to fvwm-owner_at_hpc.uh.edu.
Received on Tue Jun 03 1997 - 06:31:26 BST

This archive was generated by hypermail 2.3.0 : Mon Aug 29 2016 - 19:38:00 BST