surf homepage patch

This commit is contained in:
wt committed 2024-07-14 14:19:22 +07:00
1 parent d6293c5757
commit d4aa3da4c0
8 files changed
+2354

No files matched your search

+24
View File
@@ -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);