I hate the bookmark option of firefox & opera. With some thousand bookmarks they are difficult to maintain and
the browser becomes slow if you want to open them. I want to have all bookmarks in a single file on which
I can operate with grep and other UNIX-tools.
For this I wrote a little shell script, get it on:
http://nion.modprobe.de/bookmark.sh
Mark an URL in your browser and then execute the script. The script uses the URL, downloads it, parses title
and writes the page title and URL into a file. It gets the URL using
wmiiplumb from the
window manager
wmii.
wmiiplumb only prints selected strings in X to the standard output and can be
used with every window manger, it only depends on the Xlibs.
For those who have no wmii installation get a copy of wmiiplumb on:
http://nion.modprobe.de/wmiiplumb.c
and compile it with:
gcc -L/usr/X11R6/lib -L/usr/include/lib -lX11 wmiiplumb.c
If you use wmii you can modify your ~/.wmii-$version/wmiirc
and for example add a line like:
kbind normal $MODKEY-b 'extern /home/nion/bin/bookmark.sh'
Now if you press ALT+b and an URL is selected it will grab the title and write it with URL to ~/bookmarks.txt
As a matter of course this can be used with other window mangers too.