X-Git-Url: https://git.danieliu.xyz/?a=blobdiff_plain;f=config.def.h;h=e3b988161dae0d3389b73afac2ca4bbdd016a6d1;hb=b3a4392923b26e81c4faa35907a4a2d071e2275f;hp=7b5cf8dafe264c3574d39e01c19918bc16aeaf52;hpb=7c34d5061e372d44e20a27df375d785656614935;p=surf.git diff --git a/config.def.h b/config.def.h index 7b5cf8d..e3b9881 100644 --- a/config.def.h +++ b/config.def.h @@ -53,6 +53,16 @@ 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