sites

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit c761fd4c2c4511f5ad707df7378a6a0d2547e5e8
parent 607f0c8d9f60f0ee583634a4dbb2c0c43b9544a3
Author: x@eol.org <unknown>
Date:   Thu,  8 Oct 2009 16:56:44 +0200

changed surf.suckless.org/files/simple_bookmarking.md,
sorry if it's not clean I'm not used with wiki syntax,
I promise I won't touch other people's pages before I'm ready. :)
Diffstat:
Msurf.suckless.org/files/simple_bookmarking.md | 14+++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/surf.suckless.org/files/simple_bookmarking.md b/surf.suckless.org/files/simple_bookmarking.md @@ -12,11 +12,11 @@ surf -x >> ~/.surf/id bookmarkurl : ->file=~/.surf/bookmarks ->surfid=`head -n 1 ~/.surf/id` ->url=`xprop -id $surfid | grep URL | awk '{print $3}' | sed 's/\"/\ /g'` ->title=`xprop -id $surfid | grep WM_ICON_NAME\(STRING\) | cut -c 24-` ->echo -e `echo -e $url $title | dmenu` >> $file + file=~/.surf/bookmarks + surfid=`head -n 1 ~/.surf/id` + url=`xprop -id $surfid | grep URL | awk '{print $3}' | sed 's/\"/\ /g'` + title=`xprop -id $surfid | grep WM_ICON_NAME\(STRING\) | cut -c 24-` + echo -e `echo -e $url $title | dmenu` >> $file to add tags, when dmenu displays, simply tab, space and write your tag @@ -25,8 +25,8 @@ loadbookmark : (needs a vertical patch on dmenu for convenience, choose the one you like, Meillo's is the lightweight, Fresch's is the full featured) ->url=`cat ~/.surf/bookmarks | dmenu -i -b -l 10 | awk '{print $1}'` ->xprop -id `head -n 1 ~/.surf/id` -f _SURF_URL 8s -set _SURF_URL $url + url=`cat ~/.surf/bookmarks | dmenu -i -b -l 10 | awk '{print $1}'` + xprop -id `head -n 1 ~/.surf/id` -f _SURF_URL 8s -set _SURF_URL $url To make dmenu display bookmark with a tag only, add a grep part in the first line and launch this script with the tag as argument.