Xinqi Bao's Git
projects
/
st.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
raw
|
inline
| side by side
fixed background color bug (thx Devin J. Pohly).
[st.git]
/
config.h
diff --git
a/config.h
b/config.h
index
67c854e
..
0b0b36d
100644
(file)
--- a/
config.h
+++ b/
config.h
@@
-1,9
+1,8
@@
-#define SHELL "/bin/bash"
#define TAB 8
#define TAB 8
-#define FONT "
fixed
"
-#define BO
RDER 3
-#define
LINESPACE 1 /* additional pixel between each line */
+#define FONT "
6x13
"
+#define BO
LDFONT FONT"bold"
+#define
BORDER 2
/* Terminal colors */
static const char *colorname[] = {
/* Terminal colors */
static const char *colorname[] = {
@@
-31,8
+30,40
@@
static Key key[] = {
{ XK_End, "\033[4~" },
{ XK_Prior, "\033[5~" },
{ XK_Next, "\033[6~" },
{ 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,
};
};