Add plumbing functionality.
[surf.git] / config.def.h
index 6718a81..2baafef 100644 (file)
@@ -53,7 +53,18 @@ static Bool allowgeolocation      = TRUE;
        } \
 }
 
+/* PLUMB(URI) */
+#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" },