surf

Mahdi's build of surf
git clone git://mahdi.pw/surf.git
Log | Files | Refs | README | LICENSE

surf-2.0-homepage.diff (600B)


      1 diff --git a/config.def.h b/config.def.h
      2 --- a/config.def.h
      3 +++ b/config.def.h
      4 @@ -164,3 +164,5 @@ static Button buttons[] = {
      5  	{ OnAny,        0,              9,      clicknavigate,  { .i = +1 },    1 },
      6  	{ OnMedia,      MODKEY,         1,      clickexternplayer, { 0 },       1 },
      7  };
      8 +
      9 +#define HOMEPAGE "https://duckduckgo.com/"
     10 diff --git a/surf.c b/surf.c
     11 --- a/surf.c
     12 +++ b/surf.c
     13 @@ -1751,7 +1751,11 @@ main(int argc, char *argv[])
     14  	if (argc > 0)
     15  		arg.v = argv[0];
     16  	else
     17 +#ifdef HOMEPAGE
     18 +		arg.v = HOMEPAGE;
     19 +#else
     20  		arg.v = "about:blank";
     21 +#endif
     22  
     23  	setup();
     24  	c = newclient(NULL);