From 56729247de9ae123cc08ed1e45097622340388b6 Mon Sep 17 00:00:00 2001 From: Daniel Liu Date: Sat, 1 Aug 2020 00:45:40 -0400 Subject: [PATCH] applied homepage --- config.def.h | 2 ++ surf.c | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/config.def.h b/config.def.h index 5364cea..8a3c924 100644 --- a/config.def.h +++ b/config.def.h @@ -206,3 +206,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 index 2b54e3c..aad863e 100644 --- a/surf.c +++ b/surf.c @@ -2111,7 +2111,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); -- 2.20.1