On Tue, Sep 19, 2017 at 11:21:55PM +0200, Jaume Devesa wrote:
> This trivial commit adapts the _homepage patch_ [1] at the current
> version of surf (2.0)
>
> [1]: https://surf.suckless.org/patches/homepage
> ---
> config.def.h | 1 +
> surf.c | 6 +++++-
> 2 files changed, 6 insertions(+), 1 deletion(-)
>
> diff --git a/config.def.h b/config.def.h
> index 2e735bf..0b9d377 100644
> --- a/config.def.h
> +++ b/config.def.h
> _AT_@ -64,6 +64,7 @@ static WebKitFindOptions findopts = WEBKIT_FIND_OPTIONS_CASE_INSENSITIVE |
>
> #define PROMPT_GO "Go:"
> #define PROMPT_FIND "Find:"
> +#define HOMEPAGE "https://duckduckgo.com/"
>
> /* SETPROP(readprop, setprop, prompt)*/
> #define SETPROP(r, s, p) { \
> diff --git a/surf.c b/surf.c
> index 0f8b9c9..a4cedb0 100644
> --- a/surf.c
> +++ b/surf.c
> _AT_@ -2033,7 +2033,11 @@ main(int argc, char *argv[])
> if (argc > 0)
> arg.v = argv[0];
> else
> - arg.v = "about:blank";
> + #ifdef HOMEPAGE
> + arg.v = HOMEPAGE;
> + #else
> + arg.v = "about:blank";
> + #endif
>
> setup();
> c = newclient(NULL);
> --
> 2.14.1
>
>
Hey,
Feel free to add the link to the wiki. Anyone can push to: git.suckless.org/sites
--
Kind regards,
Hiltjo
Received on Wed Sep 20 2017 - 00:15:08 CEST