commit 93338f219563c2c9523564954cdc002bbd5533f8
parent 16d76f11e4750ade8c240fb1e02d43ea24903c69
Author: hhvn <dev@hhvn.uk>
Date: Sun, 16 Jan 2022 20:36:10 +0000
Makefile, config.h -> config.def.h: use a def config
Diffstat:
3 files changed, 40 insertions(+), 37 deletions(-)
diff --git a/Makefile b/Makefile
@@ -33,4 +33,7 @@ zygo.o: config.h
clean:
-rm -f $(OBJ) $(BIN)
+config.h: config.def.h
+ cp config.def.h config.h
+
.PHONY: clean
diff --git a/config.def.h b/config.def.h
@@ -0,0 +1,37 @@
+static char *starturi = "gopher://hhvn.uk";
+static char *plumber = "xdg-open";
+static int parallelplumb = 0;
+static int stimeout = 5;
+
+static short bar_pair[2] = {-1, 0};
+static short uri_pair[2] = {0, 7};
+static short cmd_pair[2] = {7, 0};
+static short arg_pair[2] = {-1, 0};
+static short err_pair[2] = {160, 0};
+static short eid_pair[2] = {4, -1};
+
+static Scheme scheme[] = {
+ /* type, name, fg */
+ {'i', " ", -1 },
+ {'0', "Text", -1 },
+ {'1', "Dir ", -1 },
+ {'2', "CCSO", -1 },
+ {'4', "Bin ", -1 },
+ {'5', "Bin ", -1 },
+ {'9', "Bin ", -1 },
+ {'7', "Srch", -1 },
+ {'8', "Teln", -1 },
+ {'T', "Teln", -1 },
+ {'+', "Alt ", -1 },
+ {'I', "Img ", -1 },
+ {'g', "Img ", -1 },
+ {'h', "HTML", -1 },
+ {'s', "Snd ", -1 },
+ {'d', "Doc ", -1 },
+ {'3', "ERR ", -1 },
+
+ /* DNE! These values are actually used:
+ * -1 = default foregrounds
+ * 0 = default colour pair */
+ {'\0', NULL, -1, 0 },
+};
diff --git a/config.h b/config.h
@@ -1,37 +0,0 @@
-static char *starturi = "gopher://hhvn.uk";
-static char *plumber = "plumb";
-static int parallelplumb = 1;
-static int stimeout = 5;
-
-static short bar_pair[2] = {-1, 0};
-static short uri_pair[2] = {0, 7};
-static short cmd_pair[2] = {7, 0};
-static short arg_pair[2] = {-1, 0};
-static short err_pair[2] = {160, 0};
-static short eid_pair[2] = {4, -1};
-
-static Scheme scheme[] = {
- /* type, name, fg */
- {'i', " ", -1 },
- {'0', "Text", -1 },
- {'1', "Dir ", -1 },
- {'2', "CCSO", -1 },
- {'4', "Bin ", -1 },
- {'5', "Bin ", -1 },
- {'9', "Bin ", -1 },
- {'7', "Srch", -1 },
- {'8', "Teln", -1 },
- {'T', "Teln", -1 },
- {'+', "Alt ", -1 },
- {'I', "Img ", -1 },
- {'g', "Img ", -1 },
- {'h', "HTML", -1 },
- {'s', "Snd ", -1 },
- {'d', "Doc ", -1 },
- {'3', "ERR ", -1 },
-
- /* DNE! These values are actually used:
- * -1 = default foregrounds
- * 0 = default colour pair */
- {'\0', NULL, -1, 0 },
-};