sites

public wiki contents of suckless.org
git clone git://git.suckless.org/sites
Log | Files | Refs

commit 8d97a121ef0725732dcd5ee814d2ad9e19802d6e
parent bea8706088510bd72fa73d6e12d997c232113fcc
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Fri,  9 Aug 2019 16:25:34 +0200

surf bookmarks: remove corrupt ancient patches

there is no stealing, only sharing

Diffstat:
Msurf.suckless.org/patches/bookmarking/index.md | 4+---
Dsurf.suckless.org/patches/bookmarking/surf-0.6-bookmarks.diff | 40----------------------------------------
Dsurf.suckless.org/patches/bookmarking/surf-tip-bookmarks.diff | 41-----------------------------------------
3 files changed, 1 insertion(+), 84 deletions(-)

diff --git a/surf.suckless.org/patches/bookmarking/index.md b/surf.suckless.org/patches/bookmarking/index.md @@ -10,13 +10,11 @@ Ctrl-m is used to add a new bookmark. Download -------- -* [surf-0.6-bookmarks.diff](surf-0.6-bookmarks.diff) (20130514) *Note: use Ctrl-b instead of Ctrl-m.* * [surf-bookmarks-20170722-723ff26.diff](surf-bookmarks-20170722-723ff26.diff) (20170722) Author ------ -stolen from + * Julien Steinhauser <julien.steinhauser@orange.fr> - written into a patch * blut * Alexis Ben Miloud--Josselin; panpo; alexisbmj+code at protonmail dot com. diff --git a/surf.suckless.org/patches/bookmarking/surf-0.6-bookmarks.diff b/surf.suckless.org/patches/bookmarking/surf-0.6-bookmarks.diff @@ -1,40 +0,0 @@ -diff --git a/config.def.h b/config.def.h -index 08ff707..3800f63 100644 ---- a/config.def.h -+++ b/config.def.h -@@ -25,7 +25,8 @@ static Bool allowgeolocation = TRUE; - - #define SETPROP(p, q) { \ - .v = (char *[]){ "/bin/sh", "-c", \ -- "prop=\"`xprop -id $2 $0 | cut -d '\"' -f 2 | xargs -0 printf %b | dmenu`\" &&" \ -+ "prop=\"`(xprop -id $2 $0 | cut -d '\"' -f 2 | xargs -0 printf %b && "\ -+ "cat ~/.surf/bookmarks) | dmenu`\" &&" \ - "xprop -id $2 -f $1 8s -set $1 \"$prop\"", \ - p, q, winid, NULL \ - } \ -@@ -41,6 +42,12 @@ static Bool allowgeolocation = TRUE; - } \ - } - -+#define BM_ADD { .v = (char *[]){ "/bin/sh", "-c", \ -+ "(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 - - /* hotkeys */ -@@ -72,6 +79,7 @@ static Key keys[] = { - { MODKEY, GDK_space, scroll_v, { .i = +10000 } }, - { MODKEY, GDK_i, scroll_h, { .i = +1 } }, - { MODKEY, GDK_u, scroll_h, { .i = -1 } }, -+ { MODKEY, GDK_b, spawn, BM_ADD }, - - { 0, GDK_F11, fullscreen, { 0 } }, - { 0, GDK_Escape, stop, { 0 } }, -@@ -93,4 +101,3 @@ static Key keys[] = { - { MODKEY|GDK_SHIFT_MASK,GDK_b, togglescrollbars,{ 0 } }, - { MODKEY|GDK_SHIFT_MASK,GDK_g, togglegeolocation, { 0 } }, - }; -- diff --git a/surf.suckless.org/patches/bookmarking/surf-tip-bookmarks.diff b/surf.suckless.org/patches/bookmarking/surf-tip-bookmarks.diff @@ -1,41 +0,0 @@ -diff --git a/config.def.h b/config.def.h -index 1c18827..4de93c3 100644 ---- a/config.def.h -+++ b/config.def.h -@@ -37,9 +37,10 @@ static Bool allowgeolocation = TRUE; - - #define SETPROP(p, q) { \ - .v = (char *[]){ "/bin/sh", "-c", \ -- "prop=\"`xprop -id $2 $0 " \ -+ "prop=\"`(xprop -id $2 $0 " \ - "| sed \"s/^$0(STRING) = \\(\\\\\"\\?\\)\\(.*\\)\\1$/\\2/\" " \ -- "| xargs -0 printf %b | dmenu`\" &&" \ -+ "| xargs -0 printf %b &&" \ -+ "cat ~/.surf/bookmarks)| dmenu`\" &&" \ - "xprop -id $2 -f $1 8s -set $1 \"$prop\"", \ - p, q, winid, NULL \ - } \ -@@ -65,6 +66,15 @@ static Bool allowgeolocation = TRUE; - } \ - } - -+#define BM_ADD { \ -+ .v = (char *[]){ "/bin/sh", "-c", \ -+ "(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 \ -+ } \ -+} -+ - /* styles */ - /* - * The iteration will stop at the first match, beginning at the beginning of -@@ -106,6 +116,7 @@ static Key keys[] = { - { MODKEY, GDK_space, scroll_v, { .i = +10000 } }, - { MODKEY, GDK_i, scroll_h, { .i = +1 } }, - { MODKEY, GDK_u, scroll_h, { .i = -1 } }, -+ { MODKEY, GDK_b, spawn, BM_ADD }, - - { 0, GDK_F11, fullscreen, { 0 } }, - { 0, GDK_Escape, stop, { 0 } },