sites

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

commit 7dc3d92a09891beabe588997f1d4b452156a3655
parent bef3d991169eb758511f5ac85b053e59d2704707
Author: Henrique Lengler <henriqueleng@openmailbox.org>
Date:   Sat, 16 Aug 2014 04:13:07 -0300

added a new patch

Diffstat:
Msurf.suckless.org/patches/homepage.md | 6++----
Asurf.suckless.org/patches/surf-0.6-homepage.diff | 23+++++++++++++++++++++++
2 files changed, 25 insertions(+), 4 deletions(-)

diff --git a/surf.suckless.org/patches/homepage.md b/surf.suckless.org/patches/homepage.md @@ -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@gmail.com](mailto:mjbauer95@gmail.com)> +* Henrique Lengler <[henriqueleng@openmailbox.org](mailto:henriqueleng@openmailbox.org)> diff --git a/surf.suckless.org/patches/surf-0.6-homepage.diff b/surf.suckless.org/patches/surf-0.6-homepage.diff @@ -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 +@@ -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 +@@ -1483,6 +1483,9 @@ + default: + usage(); + } ARGEND; ++ #ifdef HOMEPAGE ++ arg.v = HOMEPAGE; ++ #endif + if(argc > 0) + arg.v = argv[0];