[wiki] [sites] added a new patch || Henrique Lengler

From: <git_AT_suckless.org>
Date: Sat, 16 Aug 2014 09:14:52 +0200

commit 7dc3d92a09891beabe588997f1d4b452156a3655
Author: Henrique Lengler <henriqueleng_AT_openmailbox.org>
Date: Sat Aug 16 04:13:07 2014 -0300

    added a new patch

diff --git a/surf.suckless.org/patches/homepage.md b/surf.suckless.org/patches/homepage.md
index 8e4c536..995ab55 100644
--- a/surf.suckless.org/patches/homepage.md
+++ b/surf.suckless.org/patches/homepage.md
_AT_@ -6,16 +6,14 @@ Description
 
 This patch allows you to set a homepage to be loaded when you have not set a uri.
 
-Add the homepage to your config.h:
-
- #define HOMEPAGE "http://www.google.com/"
-
 Download
 --------
 
+* [surf-0.6-homepage.diff](surf-0.6-homepage.diff) (.7k) (20140816)
 * [surf-0.3-homepage.diff](surf-0.3-homepage.diff) (.3k) (20100705)
 
 Author
 ------
 
 * Matthew Bauer <[mjbauer95_AT_gmail.com](mailto:mjbauer95_AT_gmail.com)>
+* Henrique Lengler <[henriqueleng_AT_openmailbox.org](mailto:henriqueleng_AT_openmailbox.org)>
diff --git a/surf.suckless.org/patches/surf-0.6-homepage.diff b/surf.suckless.org/patches/surf-0.6-homepage.diff
new file mode 100644
index 0000000..d23d0c9
--- /dev/null
+++ b/surf.suckless.org/patches/surf-0.6-homepage.diff
_AT_@ -0,0 +1,23 @@
+diff -u a/config.def.h b/config.def.h
+--- a/config.def.h 2014-08-16 02:14:02.536275454 -0300
++++ b/config.def.h 2014-08-16 02:12:18.784283700 -0300
+_AT_@ -31,6 +31,7 @@
+ static Bool hidebackground = FALSE;
+ static Bool allowgeolocation = TRUE;
+
++#define HOMEPAGE "https://www.duckduckgo.com/"
+ #define SETPROP(p, q) { \
+ .v = (char *[]){ "/bin/sh", "-c", \
+ "prop=\"`xprop -id $2 $0 | cut -d '\"' -f 2 | xargs -0 printf %b | dmenu`\" &&" \
+diff -u a/surf.c b/surf.c
+--- a/surf.c 2014-08-16 02:14:02.536275454 -0300
++++ b/surf.c 2014-08-16 02:09:58.216294873 -0300
+_AT_@ -1483,6 +1483,9 @@
+ default:
+ usage();
+ } ARGEND;
++ #ifdef HOMEPAGE
++ arg.v = HOMEPAGE;
++ #endif
+ if(argc > 0)
+ arg.v = argv[0];
Received on Sat Aug 16 2014 - 09:14:52 CEST

This archive was generated by hypermail 2.3.0 : Thu Jun 18 2015 - 17:39:33 CEST