aboutsummaryrefslogtreecommitdiff
path: root/config.def.h
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2019-05-26 16:34:48 -0700
committerBruce Hill <bruce@bruce-hill.com>2019-05-26 16:34:48 -0700
commit4aa93906e707822e65cf275db4f856fcee97cdea (patch)
tree762ae34b1f81a9e2ff9435b497cb2f86f5aa48de /config.def.h
parent75c2f4e1692335b9432abcc66c0d3004743a0ed1 (diff)
Moved a bunch of the config options into the config file (colors, etc.)
and fixed some rendering issues
Diffstat (limited to 'config.def.h')
-rw-r--r--config.def.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/config.def.h b/config.def.h
index 54ea1b9..899e710 100644
--- a/config.def.h
+++ b/config.def.h
@@ -52,6 +52,25 @@
*/
#include "keys.h"
+// Configurable options:
+extern const char *CURSOR_COLOR, *LINKDIR_COLOR, *DIR_COLOR, *LINK_COLOR, *NORMAL_COLOR,
+ *SORT_INDICATOR, *RSORT_INDICATOR, *CMDFILE_FORMAT;
+extern const int KEY_DELAY;
+
+const int KEY_DELAY = 50;
+#define SCROLLOFF MIN(5, (termheight-4)/2)
+
+const char *CMDFILE_FORMAT = "/tmp/bb.XXXXXX";
+
+const char *SORT_INDICATOR = "↓";
+const char *RSORT_INDICATOR = "↑";
+
+const char *NORMAL_COLOR = "\033[0m";
+const char *CURSOR_COLOR = "\033[0;30;43m";
+const char *LINKDIR_COLOR = "\033[0;36m";
+const char *DIR_COLOR = "\033[0;34m";
+const char *LINK_COLOR = "\033[0;33m";
+
#define PIPE_SELECTION_TO " printf '%s\\n' \"$@\" | "
#define PAUSE " read -n1 -p '\033[2m...press any key to continue...\033[0m\033[?25l'"