about summary refs log tree commit diff
path: root/config.def.h
diff options
context:
space:
mode:
authorChristoph Lohmann <20h@r-36.net>2015-01-19 22:15:18 +0100
committerChristoph Lohmann <20h@r-36.net>2015-01-19 22:15:18 +0100
commit9c3b5ad35389f1930834bf04341eb0c3514a850f (patch)
tree996bced8c0eb36e56d2ce3bec644e2e92d80ebea /config.def.h
parentAdd a comment about how the styles are iterated. (diff)
downloadsurf-9c3b5ad35389f1930834bf04341eb0c3514a850f.tar.gz
surf-9c3b5ad35389f1930834bf04341eb0c3514a850f.tar.bz2
surf-9c3b5ad35389f1930834bf04341eb0c3514a850f.zip
Add plumbing functionality.
Diffstat (limited to 'config.def.h')
-rw-r--r--config.def.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/config.def.h b/config.def.h
index 7b5cf8d..2baafef 100644
--- a/config.def.h
+++ b/config.def.h
@@ -53,6 +53,13 @@ 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