sites

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

commit 909323f9e65f372215e5098cc999fd9d4bef430d
parent 444edab5f0bab208519176f7ae50f0978c10b39e
Author: blut <cxblut@gmail.com>
Date:   Sat, 25 May 2013 16:51:43 +0200

Avoid saving multiple bookmarks

Diffstat:
Msurf.suckless.org/patches/surf-0.6-bookmarks.diff | 8++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/surf.suckless.org/patches/surf-0.6-bookmarks.diff b/surf.suckless.org/patches/surf-0.6-bookmarks.diff @@ -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 @@ -25,7 +25,8 @@ static Bool allowgeolocation = TRUE; @@ -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