aboutsummaryrefslogtreecommitdiff
path: root/config.def.h
diff options
context:
space:
mode:
Diffstat (limited to 'config.def.h')
-rw-r--r--config.def.h60
1 files changed, 32 insertions, 28 deletions
diff --git a/config.def.h b/config.def.h
index a8f48ea..1ba6d8e 100644
--- a/config.def.h
+++ b/config.def.h
@@ -1,11 +1,19 @@
1/* See LICENSE file for copyright and license details. */
1 2
2#define FONT "Liberation Mono:pixelsize=12:antialias=false:autohint=false" 3/* appearance */
4static char font[] = "Liberation Mono:pixelsize=12:antialias=false:autohint=false";
5static unsigned int borderpx = 2;
6static char shell[] = "/bin/sh";
3 7
4/* Space in pixels around the terminal buffer */ 8/* double-click timeout (in milliseconds) between clicks for selection */
5#define BORDER 2 9static unsigned int doubleclicktimeout = 300;
10static unsigned int tripleclicktimeout = 600;
11
12/* TERM value */
13static char termname[] = "st-256color";
14
15static unsigned int tabspaces = 8;
6 16
7/* Default shell to use if SHELL is not set in the env */
8#define SHELL "/bin/sh"
9 17
10/* Terminal colors (16 first used in escape sequence) */ 18/* Terminal colors (16 first used in escape sequence) */
11static const char *colorname[] = { 19static const char *colorname[] = {
@@ -36,21 +44,26 @@ static const char *colorname[] = {
36 "#333333", 44 "#333333",
37}; 45};
38 46
39/* Default colors (colorname index)
40 foreground, background, cursor, unfocused cursor */
41#define DefaultFG 7
42#define DefaultBG 0
43#define DefaultCS 256
44#define DefaultUCS 257
45
46/* Special keys (change & recompile st.info accordingly)
47 Keep in mind that kpress() in st.c hardcodes some keys.
48
49 Mask value:
50 * Use XK_ANY_MOD to match the key no matter modifiers state
51 * Use XK_NO_MOD to match the key alone (no modifiers)
52 47
53 key, mask, output */ 48/*
49 * Default colors (colorname index)
50 * foreground, background, cursor, unfocused cursor
51 */
52static unsigned int defaultfg = 7;
53static unsigned int defaultbg = 0;
54static unsigned int defaultcs = 256;
55static unsigned int defaultucs = 257;
56
57/*
58 * Special keys (change & recompile st.info accordingly)
59 * Keep in mind that kpress() in st.c hardcodes some keys.
60 *
61 * Mask value:
62 * * Use XK_ANY_MOD to match the key no matter modifiers state
63 * * Use XK_NO_MOD to match the key alone (no modifiers)
64 */
65
66/* key, mask, output */
54static Key key[] = { 67static Key key[] = {
55 { XK_BackSpace, XK_NO_MOD, "\177" }, 68 { XK_BackSpace, XK_NO_MOD, "\177" },
56 { XK_Insert, XK_NO_MOD, "\033[2~" }, 69 { XK_Insert, XK_NO_MOD, "\033[2~" },
@@ -82,12 +95,3 @@ static Shortcut shortcuts[] = {
82 { MODKEY|ShiftMask, XK_Next, xzoom, {.i = -1} }, 95 { MODKEY|ShiftMask, XK_Next, xzoom, {.i = -1} },
83}; 96};
84 97
85/* Set TERM to this */
86#define TNAME "st-256color"
87
88/* double-click timeout (in milliseconds) between clicks for selection */
89#define DOUBLECLICK_TIMEOUT 300
90#define TRIPLECLICK_TIMEOUT (2*DOUBLECLICK_TIMEOUT)
91
92#define TAB 8
93