X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=config.h;h=f8815715390dd6d7677d8eadd3b956b0447e7e53;hb=0f4dd5035ed920c67133f1a4b8aef5cbd957c7be;hp=c01354dcb53437c8e824e5a7ae12a9a7a94cdab9;hpb=0a5e5102096d65a3ba8e39ea9b9b0eb89fe30e04;p=st.git diff --git a/config.h b/config.h index c01354d..f881571 100644 --- a/config.h +++ b/config.h @@ -1,12 +1,13 @@ #define SHELL "/bin/bash" #define TAB 8 -#define FONT "fixed" +#define FONT "6x13" +#define BOLDFONT FONT"bold" #define BORDER 3 -#define LINESPACE 1 /* additional pixel between each line */ +#define LINESPACE 0 /* additional pixel between each line */ /* Terminal colors */ -static char* colorname[] = { +static const char *colorname[] = { "black", "red", "green", @@ -24,7 +25,6 @@ static char* colorname[] = { #define DefaultCS 1 #define BellCol DefaultFG - /* special keys */ static Key key[] = { { XK_Delete, "\033[3~" }, @@ -32,8 +32,40 @@ static Key key[] = { { XK_End, "\033[4~" }, { XK_Prior, "\033[5~" }, { XK_Next, "\033[6~" }, - { XK_Left, "\033[D" }, - { XK_Right, "\033[C" }, - { XK_Up, "\033[A" }, - { XK_Down, "\033[B" }, +}; + +static char gfx[] = { + ['}'] = 'f', + ['.'] = 'v', + [','] = '<', + ['+'] = '>', + ['-'] = '^', + ['h'] = '#', + ['~'] = 'o', + ['a'] = ':', + ['f'] = '\\', + ['`'] = '+', + ['z'] = '>', + ['{'] = '*', + ['q'] = '-', + ['i'] = '#', + ['n'] = '+', + ['y'] = '<', + ['m'] = '+', + ['j'] = '+', + ['|'] = '!', + ['g'] = '#', + ['o'] = '~', + ['p'] = '-', + ['r'] = '-', + ['s'] = '_', + ['0'] = '#', + ['w'] = '+', + ['u'] = '+', + ['t'] = '+', + ['v'] = '+', + ['l'] = '+', + ['k'] = '+', + ['x'] = '|', + [255] = 0, };