X-Git-Url: https://git.danieliu.xyz/?a=blobdiff_plain;f=config.def.h;h=e3b988161dae0d3389b73afac2ca4bbdd016a6d1;hb=68813b3a4640dcfcbe002a1ff5803f04b9c50c06;hp=6718a812596a8ce1029cc0234c6ac6514a914f9c;hpb=117d4848338315d15e1ab93cd551889fc6964a2b;p=surf.git diff --git a/config.def.h b/config.def.h index 6718a81..e3b9881 100644 --- a/config.def.h +++ b/config.def.h @@ -53,7 +53,21 @@ static Bool allowgeolocation = TRUE; } \ } +/* PLUMB(URI) */ +/* This called when some URI which does not begin with "about:", + * "http://" or "https://" should be opened. + */ +#define PLUMB(u) {\ + .v = (char *[]){ "/bin/sh", "-c", \ + "xdg-open \"$0\"", u, NULL \ + } \ +} + /* styles */ +/* + * The iteration will stop at the first match, beginning at the beginning of + * the list. + */ static SiteStyle styles[] = { /* regexp file in $styledir */ { ".*", "default.css" },