commit 27a231ddf880949eabc328abdaa412aba9812f52
Author: Matteo Durante <[email protected]>
Date:   Mon Mar 9 18:15:17 2020 +0100

    gruvbox patch

diff --git a/st.suckless.org/patches/gruvbox/index.md 
b/st.suckless.org/patches/gruvbox/index.md
new file mode 100644
index 00000000..62e5ed16
--- /dev/null
+++ b/st.suckless.org/patches/gruvbox/index.md
@@ -0,0 +1,21 @@
+gruvbox
+=========
+
+Description
+-----------
+[gruvbox](https://github.com/morhetz/gruvbox) is a retro groove color scheme 
made by morhetz based and heavily inspired by badwolf, jellybeans and 
solarized. This patch makes the gruvbox color scheme available for st.
+
+Notes
+-----
+Once applied, only the terminal colors are changed. You can find a
+vim colorscheme [here](https://draculatheme.com/vim/) and much more at
+[https://github.com/morhetz/gruvbox-contrib](https://github.com/morhetz/gruvbox-contrib).
+
+Download
+--------
+* [st-gruvbox-dark-0.8.2.diff](st-gruvbox-dark-0.8.2.diff)
+* [st-gruvbox-light-0.8.2.diff](st-gruvbox-light-0.8.2.diff)
+
+Authors
+-------
+* Matteo Durante (Waifod) - <[email protected]>
diff --git a/st.suckless.org/patches/gruvbox/st-gruvbox-dark-0.8.2.diff 
b/st.suckless.org/patches/gruvbox/st-gruvbox-dark-0.8.2.diff
new file mode 100644
index 00000000..c8390f06
--- /dev/null
+++ b/st.suckless.org/patches/gruvbox/st-gruvbox-dark-0.8.2.diff
@@ -0,0 +1,70 @@
+diff --git a/config.def.h b/config.def.h
+index 877afab..6a1699f 100644
+--- a/config.def.h
++++ b/config.def.h
+@@ -84,41 +84,35 @@ 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] = "#282828", /* hard contrast: #1d2021 / soft contrast: #32302f */
++  [1] = "#cc241d", /* red     */
++  [2] = "#98971a", /* green   */
++  [3] = "#d79921", /* yellow  */
++  [4] = "#458588", /* blue    */
++  [5] = "#b16286", /* magenta */
++  [6] = "#689d6a", /* cyan    */
++  [7] = "#a89984", /* white   */
++
++  /* 8 bright colors */
++  [8]  = "#928374", /* black   */
++  [9]  = "#fb4934", /* red     */
++  [10] = "#b8bb26", /* green   */
++  [11] = "#fabd2f", /* yellow  */
++  [12] = "#83a598", /* blue    */
++  [13] = "#d3869b", /* magenta */
++  [14] = "#8ec07c", /* cyan    */
++  [15] = "#ebdbb2", /* white   */
++};
+
+ /*
+  * 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 = 15;
++unsigned int defaultbg = 0;
++static unsigned int defaultcs = 15;
+ static unsigned int defaultrcs = 257;
+
+ /*
diff --git a/st.suckless.org/patches/gruvbox/st-gruvbox-light-0.8.2.diff 
b/st.suckless.org/patches/gruvbox/st-gruvbox-light-0.8.2.diff
new file mode 100644
index 00000000..256a4fc9
--- /dev/null
+++ b/st.suckless.org/patches/gruvbox/st-gruvbox-light-0.8.2.diff
@@ -0,0 +1,70 @@
+diff --git a/config.def.h b/config.def.h
+index 877afab..6a1699f 100644
+--- a/config.def.h
++++ b/config.def.h
+@@ -84,41 +84,35 @@ 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] = "#fbf1c7", /* hard contrast: #f9f5d7 / soft contrast: #f2e5bc */
++  [1] = "#cc241d", /* red     */
++  [2] = "#98971a", /* green   */
++  [3] = "#d79921", /* yellow  */
++  [4] = "#458588", /* blue    */
++  [5] = "#b16286", /* magenta */
++  [6] = "#689d6a", /* cyan    */
++  [7] = "#7c6f64", /* white   */
++
++  /* 8 bright colors */
++  [8]  = "#928374", /* black   */
++  [9]  = "#9d0006", /* red     */
++  [10] = "#79740e", /* green   */
++  [11] = "#b57614", /* yellow  */
++  [12] = "#076678", /* blue    */
++  [13] = "#8f3f71", /* magenta */
++  [14] = "#427b58", /* cyan    */
++  [15] = "#3c3836", /* white   */
++};
+
+ /*
+  * 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 = 15;
++unsigned int defaultbg = 0;
++static unsigned int defaultcs = 15;
+ static unsigned int defaultrcs = 257;
+
+ /*


Reply via email to