[wiki] [sites] Avoid saving multiple bookmarks || blut
commit 909323f9e65f372215e5098cc999fd9d4bef430d
Author: blut <cxblut_AT_gmail.com>
Date: Sat May 25 16:51:43 2013 +0200
Avoid saving multiple bookmarks
diff --git a/surf.suckless.org/patches/surf-0.6-bookmarks.diff b/surf.suckless.org/patches/surf-0.6-bookmarks.diff
index d07a325..98c8c0b 100644
--- a/surf.suckless.org/patches/surf-0.6-bookmarks.diff
+++ b/surf.suckless.org/patches/surf-0.6-bookmarks.diff
_AT_@ -1,5 +1,5 @@
diff --git a/config.def.h b/config.def.h
-index 08ff707..8185136 100644
+index 08ff707..3800f63 100644
--- a/config.def.h
+++ b/config.def.h
_AT_@ -25,7 +25,8 @@ static Bool allowgeolocation = TRUE;
_AT_@ -17,9 +17,9 @@ index 08ff707..8185136 100644
}
+#define BM_ADD { .v = (char *[]){ "/bin/sh", "-c", \
-+ "(echo `xprop -id $0 _SURF_URI | cut -d '\"' -f 2` && \
-+ cat ~/.surf/bookmarks) > ~/.surf/bookmarks_new && \
-+ mv ~/.surf/bookmarks_new ~/.surf/bookmarks", \
++ "(echo `xprop -id $0 _SURF_URI | cut -d '\"' -f 2` && "\
++ "cat ~/.surf/bookmarks) | awk '!seen[$0]++' > ~/.surf/bookmarks_new && "\
++ "mv ~/.surf/bookmarks_new ~/.surf/bookmarks", \
+ winid, NULL } }
+
#define MODKEY GDK_CONTROL_MASK
Received on Sat May 25 2013 - 16:52:22 CEST
This archive was generated by hypermail 2.3.0
: Sat May 25 2013 - 17:00:13 CEST