summaryrefslogtreecommitdiff
path: root/surf/patch/surf-2.0-homepage.diff
diff options
context:
space:
mode:
authorstkhan <personal@slickd.xyz>2022-05-17 18:17:07 +0000
committerstkhan <personal@slickd.xyz>2022-05-17 18:17:07 +0000
commit9261c7a8a339056c3cd58e0b8979a6f25ea764e5 (patch)
treed83fba0566ab0d1c22cac2d84166dcdf4f2d982f /surf/patch/surf-2.0-homepage.diff
parentecf6c90d32260530c8f1805d98ff17c4d4693856 (diff)
dwm launches ncmpcpp with pictures, and surf was rebuild
Diffstat (limited to 'surf/patch/surf-2.0-homepage.diff')
-rw-r--r--surf/patch/surf-2.0-homepage.diff24
1 files changed, 24 insertions, 0 deletions
diff --git a/surf/patch/surf-2.0-homepage.diff b/surf/patch/surf-2.0-homepage.diff
new file mode 100644
index 0000000..f32016f
--- /dev/null
+++ b/surf/patch/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);