diff options
Diffstat (limited to 'config.def.h')
| -rw-r--r-- | config.def.h | 60 |
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 */ |
| 4 | static char font[] = "Liberation Mono:pixelsize=12:antialias=false:autohint=false"; | ||
| 5 | static unsigned int borderpx = 2; | ||
| 6 | static 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 | 9 | static unsigned int doubleclicktimeout = 300; |
| 10 | static unsigned int tripleclicktimeout = 600; | ||
| 11 | |||
| 12 | /* TERM value */ | ||
| 13 | static char termname[] = "st-256color"; | ||
| 14 | |||
| 15 | static 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) */ |
| 11 | static const char *colorname[] = { | 19 | static 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 | */ | ||
| 52 | static unsigned int defaultfg = 7; | ||
| 53 | static unsigned int defaultbg = 0; | ||
| 54 | static unsigned int defaultcs = 256; | ||
| 55 | static 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 */ | ||
| 54 | static Key key[] = { | 67 | static 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 | |||
