Mailinglist Archive: opensuse (3236 mails)
| < Previous | Next > |
[SLE] Googlizer, the KDE way
- From: fountai@xxxxxxxxxxxxxxx (Derek Fountain)
- Date: Wed, 26 Jan 2000 09:37:31 +0000
- Message-id: <388EC05B.3E711ACC@xxxxxxxxxxxxxxx>
I saw on Alan Cox's web site that he'd written a useful little device
for GNOME: a button on the panel which fetches the X selection and sends
it to Google for searching. I went to get a copy but the directory on
the FTP site is empty. So I wrote my own KDE version:
===
#!/bin/sh
# \
exec wish "$0" "$@"
wm withdraw .
if { [catch { set word [selection get "STRING"] }] != 0 } { exit 0 }
regsub -all "( |\n)+" "$word" "+" googleWord
exec kfmclient openURL "http://www.google.com/search?q=$googleWord"
exit 0
===
Cut what's between the "==="s and put it in an executable file. Select a
word (or more) and run the program. Up pops a KFM window with the
results of the search from Google. I made it an application and put it
on my panel.
OK, it's not rocket science, but I was rather pleased with myself. :-)
--
To unsubscribe send e-mail to suse-linux-e-unsubscribe@xxxxxxxx
For additional commands send e-mail to suse-linux-e-help@xxxxxxxx
Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/
| < Previous | Next > |