Add dracula theme
This commit is contained in:
parent
29a73a7877
commit
6b53d6a814
38
config.h
38
config.h
@ -19,6 +19,7 @@ static int borderpx = 2;
|
|||||||
static char *shell = "/bin/sh";
|
static char *shell = "/bin/sh";
|
||||||
char *utmp = NULL;
|
char *utmp = NULL;
|
||||||
/* scroll program: to enable use a string like "scroll" */
|
/* scroll program: to enable use a string like "scroll" */
|
||||||
|
//char *scroll = "scroll";
|
||||||
char *scroll = NULL;
|
char *scroll = NULL;
|
||||||
char *stty_args = "stty raw pass8 nl -echo -iexten -cstopb 38400";
|
char *stty_args = "stty raw pass8 nl -echo -iexten -cstopb 38400";
|
||||||
|
|
||||||
@ -71,7 +72,7 @@ static unsigned int cursorthickness = 2;
|
|||||||
* bell volume. It must be a value between -100 and 100. Use 0 for disabling
|
* bell volume. It must be a value between -100 and 100. Use 0 for disabling
|
||||||
* it
|
* it
|
||||||
*/
|
*/
|
||||||
static int bellvolume = 0;
|
static int bellvolume = 25;
|
||||||
|
|
||||||
/* default TERM value */
|
/* default TERM value */
|
||||||
char *termname = "st-256color";
|
char *termname = "st-256color";
|
||||||
@ -98,7 +99,7 @@ float alpha = 0.75;
|
|||||||
|
|
||||||
/* Terminal colors (16 first used in escape sequence) */
|
/* Terminal colors (16 first used in escape sequence) */
|
||||||
static const char *colorname[] = {
|
static const char *colorname[] = {
|
||||||
/* 8 normal colors */
|
/*
|
||||||
"black",
|
"black",
|
||||||
"red3",
|
"red3",
|
||||||
"green3",
|
"green3",
|
||||||
@ -108,7 +109,6 @@ static const char *colorname[] = {
|
|||||||
"cyan3",
|
"cyan3",
|
||||||
"gray90",
|
"gray90",
|
||||||
|
|
||||||
/* 8 bright colors */
|
|
||||||
"gray50",
|
"gray50",
|
||||||
"red",
|
"red",
|
||||||
"green",
|
"green",
|
||||||
@ -120,9 +120,33 @@ static const char *colorname[] = {
|
|||||||
|
|
||||||
[255] = 0,
|
[255] = 0,
|
||||||
|
|
||||||
/* more colors can be added after 255 to use with DefaultXX */
|
|
||||||
"#cccccc",
|
"#cccccc",
|
||||||
"#555555",
|
"#555555",
|
||||||
|
*/
|
||||||
|
|
||||||
|
/* 8 normal colors */
|
||||||
|
[0] = "#000000", /* black */
|
||||||
|
[1] = "#ff5555", /* red */
|
||||||
|
[2] = "#50fa7b", /* green */
|
||||||
|
[3] = "#f1fa8c", /* yellow */
|
||||||
|
[4] = "#bd93f9", /* blue */
|
||||||
|
[5] = "#ff79c6", /* magenta */
|
||||||
|
[6] = "#8be9fd", /* cyan */
|
||||||
|
[7] = "#bbbbbb", /* white */
|
||||||
|
|
||||||
|
/* 8 bright colors */
|
||||||
|
[8] = "#44475a", /* black */
|
||||||
|
[9] = "#ff5555", /* red */
|
||||||
|
[10] = "#50fa7b", /* green */
|
||||||
|
[11] = "#f1fa8c", /* yellow */
|
||||||
|
[12] = "#bd93f9", /* blue */
|
||||||
|
[13] = "#ff79c6", /* magenta */
|
||||||
|
[14] = "#8be9fd", /* cyan */
|
||||||
|
[15] = "#ffffff", /* white */
|
||||||
|
|
||||||
|
/* special colors */
|
||||||
|
[256] = "#282a36", /* background */
|
||||||
|
[257] = "#f8f8f2", /* foreground */
|
||||||
"black",
|
"black",
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -131,9 +155,9 @@ static const char *colorname[] = {
|
|||||||
* Default colors (colorname index)
|
* Default colors (colorname index)
|
||||||
* foreground, background, cursor, reverse cursor
|
* foreground, background, cursor, reverse cursor
|
||||||
*/
|
*/
|
||||||
unsigned int defaultfg = 7;
|
unsigned int defaultfg = 257;
|
||||||
unsigned int defaultbg = 258;
|
unsigned int defaultbg = 0;
|
||||||
static unsigned int defaultcs = 256;
|
static unsigned int defaultcs = 257;
|
||||||
static unsigned int defaultrcs = 257;
|
static unsigned int defaultrcs = 257;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
84
patches/st-dracula-0.8.2.diff
Normal file
84
patches/st-dracula-0.8.2.diff
Normal file
@ -0,0 +1,84 @@
|
|||||||
|
diff --git a/config.def.h b/config.def.h
|
||||||
|
index 877afab..6a1699f 100644
|
||||||
|
--- a/config.def.h
|
||||||
|
+++ b/config.def.h
|
||||||
|
@@ -84,44 +84,49 @@ static unsigned int tabspaces = 8;
|
||||||
|
|
||||||
|
/* Terminal colors (16 first used in escape sequence) */
|
||||||
|
static const char *colorname[] = {
|
||||||
|
- /* 8 normal colors */
|
||||||
|
- "black",
|
||||||
|
- "red3",
|
||||||
|
- "green3",
|
||||||
|
- "yellow3",
|
||||||
|
- "blue2",
|
||||||
|
- "magenta3",
|
||||||
|
- "cyan3",
|
||||||
|
- "gray90",
|
||||||
|
-
|
||||||
|
- /* 8 bright colors */
|
||||||
|
- "gray50",
|
||||||
|
- "red",
|
||||||
|
- "green",
|
||||||
|
- "yellow",
|
||||||
|
- "#5c5cff",
|
||||||
|
- "magenta",
|
||||||
|
- "cyan",
|
||||||
|
- "white",
|
||||||
|
-
|
||||||
|
- [255] = 0,
|
||||||
|
-
|
||||||
|
- /* more colors can be added after 255 to use with DefaultXX */
|
||||||
|
- "#cccccc",
|
||||||
|
- "#555555",
|
||||||
|
-};
|
||||||
|
|
||||||
|
+ /* 8 normal colors */
|
||||||
|
+ [0] = "#000000", /* black */
|
||||||
|
+ [1] = "#ff5555", /* red */
|
||||||
|
+ [2] = "#50fa7b", /* green */
|
||||||
|
+ [3] = "#f1fa8c", /* yellow */
|
||||||
|
+ [4] = "#bd93f9", /* blue */
|
||||||
|
+ [5] = "#ff79c6", /* magenta */
|
||||||
|
+ [6] = "#8be9fd", /* cyan */
|
||||||
|
+ [7] = "#bbbbbb", /* white */
|
||||||
|
+
|
||||||
|
+ /* 8 bright colors */
|
||||||
|
+ [8] = "#44475a", /* black */
|
||||||
|
+ [9] = "#ff5555", /* red */
|
||||||
|
+ [10] = "#50fa7b", /* green */
|
||||||
|
+ [11] = "#f1fa8c", /* yellow */
|
||||||
|
+ [12] = "#bd93f9", /* blue */
|
||||||
|
+ [13] = "#ff79c6", /* magenta */
|
||||||
|
+ [14] = "#8be9fd", /* cyan */
|
||||||
|
+ [15] = "#ffffff", /* white */
|
||||||
|
+
|
||||||
|
+ /* special colors */
|
||||||
|
+ [256] = "#282a36", /* background */
|
||||||
|
+ [257] = "#f8f8f2", /* foreground */
|
||||||
|
+};
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Default colors (colorname index)
|
||||||
|
- * foreground, background, cursor, reverse cursor
|
||||||
|
+ * foreground, background, cursor
|
||||||
|
*/
|
||||||
|
-unsigned int defaultfg = 7;
|
||||||
|
-unsigned int defaultbg = 0;
|
||||||
|
-static unsigned int defaultcs = 256;
|
||||||
|
+unsigned int defaultfg = 257;
|
||||||
|
+unsigned int defaultbg = 256;
|
||||||
|
+static unsigned int defaultcs = 257;
|
||||||
|
static unsigned int defaultrcs = 257;
|
||||||
|
|
||||||
|
/*
|
||||||
|
+ * Colors used, when the specific fg == defaultfg. So in reverse mode this
|
||||||
|
+ * will reverse too. Another logic would only make the simple feature too
|
||||||
|
+ * complex.
|
||||||
|
+ */
|
||||||
|
+unsigned int defaultitalic = 7;
|
||||||
|
+unsigned int defaultunderline = 7;
|
||||||
|
+/*
|
||||||
|
* Default shape of cursor
|
||||||
|
* 2: Block ("█")
|
||||||
|
* 4: Underline ("_")
|
Loading…
Reference in New Issue
Block a user