Hello, I'm Barrucadu - lesser known as Michael Walker, I'm one of the uzbl devs, and (off the top of my head), have contributed mostly to:
I'm 17, and half way through my A levels. My website is barrucadu.co.uk. You can find the latest version of anything on this page on my Github repo.
What this does is offer you a choice of tags to save your bookmark under, from a file $XDG_DATA_HOME/uzbl/bookmarks.tags, and then saves the bookmark in a file $XDG_DATA_HOME/uzbl/bookmarks in the format ”[tag] [time]: [url]”. If the tag was not found in the bookmarks.tags file, it adds it, so you can quickly add more bookmarks to the same category. Multiple tags can be used - but will get added as multiple entries to the tags file.
#!/bin/bash
bookmarks_file=$XDG_DATA_HOME/uzbl/bookmarks
bookmarks_tags=$XDG_DATA_HOME/uzbl/bookmarks.tags
COLORS=" -nb #303030 -nf khaki -sb #CCFFAA -sf #303030"
OPTIONS=" -i -xs -rs -l 10"
tag=`< $bookmarks_tags dmenu $OPTIONS $COLORS`
if [[ -n $tag ]] && [[ -n $7 ]] && [[ -n $6 ]];
then
if grep $tag $bookmarks_tags &>/dev/null;
then
echo "Tag found in $bookmarks_tags" > /dev/null # NOP :)
else
# Add tag
echo $tag >> $bookmarks_tags
sort $bookmarks_tags > /tmp/tags
mv /tmp/tags $bookmarks_tags
fi
echo "[$tag] $7: $6" >> $bookmarks_file
fi
#!/bin/bash
bookmarks_file=$XDG_DATA_HOME/uzbl/bookmarks
COLORS=" -nb #303030 -nf khaki -sb #CCFFAA -sf #303030"
OPTIONS=" -i -xs -rs -l 10"
goto=`sort $bookmarks_file | dmenu $OPTIONS $COLORS | cut -d ' ' -f -100 | awk '{print $NF}'`
[ -n "$goto" ] && uzblctrl -s $5 -c "act uri $goto"