applied homepage
authorDaniel Liu <mr.picklepinosaur@gmail.com>
Sat, 1 Aug 2020 04:45:40 +0000 (00:45 -0400)
committerDaniel Liu <mr.picklepinosaur@gmail.com>
Sat, 1 Aug 2020 04:45:40 +0000 (00:45 -0400)
config.def.h
surf.c

index 5364cea..8a3c924 100644 (file)
@@ -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 (file)
--- 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);