commit b5ccbe35e39163f944b05cc0c9237ff188117b5e
parent 2a14c5f2268dd22d096bed3162de98eaea6bd867
Author: TanmoySarkar <tan99sarkar88@gmail.com>
Date: Thu, 18 Sep 2025 15:53:03 +0530
OneDark theme for st v0.9.3.
Diffstat:
2 files changed, 83 insertions(+), 0 deletions(-)
diff --git a/st.suckless.org/patches/onedark/index.md b/st.suckless.org/patches/onedark/index.md
@@ -0,0 +1,14 @@
+**onedark**
+===========
+
+Description
+-----------
+[Atom's onedark theme for terminals](https://github.com/nathanbuchar/atom-one-dark-terminal) mimics the OneDark theme for Atom. It is very popular, and is the basis of the `Doom-One` theme for Doomemacs.
+
+Download
+---------
+* [st-onedark-0.9.3.diff](st-onedark-0.9.3.diff)
+
+Authors
+-----
+Tanmoy Sarkar (TanmoySarkar) - <tan99sarkar88@gmail.com>
diff --git a/st.suckless.org/patches/onedark/st-onedark-0.9.3.diff b/st.suckless.org/patches/onedark/st-onedark-0.9.3.diff
@@ -0,0 +1,69 @@
+diff --git a/config.def.h b/config.def.h
+index 2cd740a..992514a 100644
+--- a/config.def.h
++++ b/config.def.h
+@@ -96,32 +96,25 @@ 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",
++[0] = "#1e2127", /* black */
++[1] = "#e06c75", /* red */
++[2] = "#98c379", /* green */
++[3] = "#d19a66", /* yellow */
++[4] = "#61afef", /* blue */
++[5] = "#c678dd", /* magenta */
++[6] = "#56b6c2", /* cyan */
++[7] = "#abb2bf", /* white */
+
+ /* 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",
+- "gray90", /* default foreground colour */
+- "black", /* default background colour */
++[8] = "#5c6370", /* black */
++[9] = "#e06c75", /* red */
++[10] = "#98c379", /* green */
++[11] = "#d19a66", /* yellow */
++[12] = "#61afef", /* blue */
++[13] = "#c678dd", /* magenta */
++[14] = "#56b6c2", /* cyan */
++[15] = "#ffffff", /* white */
++
+ };
+
+
+@@ -129,10 +122,10 @@ static const char *colorname[] = {
+ * Default colors (colorname index)
+ * foreground, background, cursor, reverse cursor
+ */
+-unsigned int defaultfg = 258;
+-unsigned int defaultbg = 259;
+-unsigned int defaultcs = 256;
+-static unsigned int defaultrcs = 257;
++unsigned int defaultfg = 7;
++unsigned int defaultbg = 0;
++unsigned int defaultcs = 8;
++static unsigned int defaultrcs = 15;
+
+ /*
+ * Default shape of cursor