sites

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

commit 86ac1f79a7050b328fa3d3d99b3bd599663e511d
parent ccd18b02c7301bc81d1c55664732c283bf80c073
Author: thatlittlegit <wapidstyle@live.ca>
Date:   Thu,  4 Jan 2018 12:35:37 -0500

Add 'homepage' patch for Surf 2.0

Diffstat:
Msurf.suckless.org/patches/homepage.md | 1+
Asurf.suckless.org/patches/surf-2.0-homepage.diff | 24++++++++++++++++++++++++
2 files changed, 25 insertions(+), 0 deletions(-)

diff --git a/surf.suckless.org/patches/homepage.md b/surf.suckless.org/patches/homepage.md @@ -9,6 +9,7 @@ This patch allows you to set a homepage to be loaded when you have not set a uri Download -------- +* [surf-2.0-homepage.diff](surf-2.0-homepage.diff) (.6k) (20180104) * [surf-0.6-homepage.diff](surf-0.6-homepage.diff) (.7k) (20140816) * [surf-0.3-homepage.diff](surf-0.3-homepage.diff) (.3k) (20100705) diff --git a/surf.suckless.org/patches/surf-2.0-homepage.diff b/surf.suckless.org/patches/surf-2.0-homepage.diff @@ -0,0 +1,24 @@ +diff --git a/config.def.h b/config.def.h +--- a/config.def.h ++++ b/config.def.h +@@ -164,3 +164,5 @@ static Button buttons[] = { + { OnAny, 0, 9, clicknavigate, { .i = +1 }, 1 }, + { OnMedia, MODKEY, 1, clickexternplayer, { 0 }, 1 }, + }; ++ ++#define HOMEPAGE "https://duckduckgo.com/" +diff --git a/surf.c b/surf.c +--- a/surf.c ++++ b/surf.c +@@ -1751,7 +1751,11 @@ main(int argc, char *argv[]) + if (argc > 0) + arg.v = argv[0]; + else ++#ifdef HOMEPAGE ++ arg.v = HOMEPAGE; ++#else + arg.v = "about:blank"; ++#endif + + setup(); + c = newclient(NULL);