sites

public wiki contents of suckless.org
git clone git://git.suckless.org/sites
Log | Files | Refs

commit 54b873438e2b9d602de7b3ec5f57b7b4015b7f2c
parent 5157daa4ec1ea4f00d3253ead7fe95a0802ee572
Author: txus <jlopez@mobimento.com>
Date:   Thu,  3 Aug 2017 14:33:15 +0200

Add dracula colorscheme to patches wiki

Diffstat:
Ast.suckless.org/patches/dracula.md | 33+++++++++++++++++++++++++++++++++
Ast.suckless.org/patches/st-dracula-20170803-7f99032.diff | 84+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Ast.suckless.org/patches/st-dracula.png | 0
3 files changed, 117 insertions(+), 0 deletions(-)

diff --git a/st.suckless.org/patches/dracula.md b/st.suckless.org/patches/dracula.md @@ -0,0 +1,33 @@ +dracula +========= + +Description +----------- + +[Dracula](https://draculatheme.com/) is a color scheme made by +Zeno Rocha based on Solarized. This patch make the Dracula +color scheme available for st. + +Notes +----- + +Once applied, only the terminal colors are changed. +You can find a [vim colorscheme](https://draculatheme.com/vim/) and +much more at [https://draculatheme.com/](https://draculatheme.com/). + + +Example +------- + +->[![Screenshot](st-dracula.png)](st-dracula.png)<- + +Running zsh and tmux. + +Download +-------- + + * [st-dracula-20170803-7f99032.diff](st-dracula-20170803-7f99032.diff) + +Authors +------- + * Jesús López - <jsus90@gmail.com> diff --git a/st.suckless.org/patches/st-dracula-20170803-7f99032.diff b/st.suckless.org/patches/st-dracula-20170803-7f99032.diff @@ -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) */ + 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; +-unsigned int defaultcs = 256; ++unsigned int defaultfg = 257; ++unsigned int defaultbg = 256; ++unsigned int defaultcs = 257; + 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 ("_") diff --git a/st.suckless.org/patches/st-dracula.png b/st.suckless.org/patches/st-dracula.png Binary files differ.