[wiki] [sites] wiki updated
changeset: 295:007660dcd3e8
tag: tip
user: x_AT_eol.org
date: Thu Oct 08 16:21:57 2009 +0200
files: surf.suckless.org/files/simple_bookmarking.md
description:
changed surf.suckless.org/files/simple_bookmarking.md
diff -r d7a0d3b9c385 -r 007660dcd3e8 surf.suckless.org/files/simple_bookmarking.md
--- a/surf.suckless.org/files/simple_bookmarking.md Thu Oct 08 13:14:20 2009 +0200
+++ b/surf.suckless.org/files/simple_bookmarking.md Thu Oct 08 16:21:57 2009 +0200
_AT_@ -4,7 +4,7 @@
Description
-----------
-This script assumes the simpliest surf usage, which probably won't be yours,
+This script assumes the simpliest surf usage, which probably will not be yours,
change this script to fit your needs.
Make sure surf is launched with something like that :
_AT_@ -12,11 +12,11 @@
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
_AT_@ -25,8 +25,8 @@
(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.
Received on Thu Oct 08 2009 - 16:21:38 CEST
This archive was generated by hypermail 2.3.0
: Thu Sep 13 2012 - 19:30:54 CEST