sites

public wiki contents of suckless.org
git clone git://git.suckless.org/sites
Log | Files | Refs

surf-0.6-homepage.diff (664B)


      1 diff --git a/config.def.h b/config.def.h
      2 index 93a3d49..41bb067 100644
      3 --- a/config.def.h
      4 +++ b/config.def.h
      5 @@ -35,6 +35,7 @@ static Bool loadimages            = TRUE;
      6  static Bool hidebackground        = FALSE;
      7  static Bool allowgeolocation      = TRUE;
      8  
      9 +#define HOMEPAGE "https://www.duckduckgo.com/"
     10  #define SETPROP(p, q) { \
     11  	.v = (char *[]){ "/bin/sh", "-c", \
     12  	     "prop=\"`xprop -id $2 $0 " \
     13 diff --git a/surf.c b/surf.c
     14 index fdfaab1..7a71bf2 100644
     15 --- a/surf.c
     16 +++ b/surf.c
     17 @@ -1759,6 +1759,9 @@ main(int argc, char *argv[])
     18  	default:
     19  		usage();
     20  	} ARGEND;
     21 +	#ifdef HOMEPAGE
     22 +		arg.v = HOMEPAGE;
     23 +	#endif
     24  	if (argc > 0)
     25  		arg.v = argv[0];
     26