aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJack Sangdahl <[email protected]>2024-12-11 14:11:05 -0700
committerJack Sangdahl <[email protected]>2024-12-11 14:11:05 -0700
commit92808aef3a9f76f461d62fc5c19883fa335a5781 (patch)
tree98f68a08afdaf5d894561866226b0de34844ecaf
parentfe4d4b0ff835ddb17387bb4ad261fe22690ba0c7 (diff)
downloadst-92808aef3a9f76f461d62fc5c19883fa335a5781.tar.gz
st-92808aef3a9f76f461d62fc5c19883fa335a5781.zip
Standalone colour configurationHEADmain
-rw-r--r--Makefile2
-rw-r--r--colours.h19
-rw-r--r--config.h7
3 files changed, 22 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index a3afee9..bfd2945 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,7 @@
PREFIX = /usr
+COLOUR_SCHEME ?= nord
+
DEPS = fontconfig harfbuzz
CFLAGS = -I/usr/X11R6/include `pkg-config --cflags ${DEPS}` \
diff --git a/colours.h b/colours.h
new file mode 100644
index 0000000..085180c
--- /dev/null
+++ b/colours.h
@@ -0,0 +1,19 @@
+// Copyright 2024 [email protected]
+// SPDX-License-Identifier: MIT/X
+#pragma once
+
+static const char *colorname[] = {
+#if COLOUR_SCHEME == nord
+ "#3B4252", "#BF616A", "#A3BE8C", "#EBCB8B", "#81A1C1", "#B48EAD", "#88C0D0",
+ "#E5E9F0", "#4C566A", "#BF616A", "#A3BE8C", "#EBCB8B", "#81A1C1", "#B48EAD",
+ "#8FBCBB", "#ECEFF4", [255] = 0, "#D8DEE9", "#2E3440",
+#elif COLOUR_SCHEME == solarized
+ "#073642", "#dc322f", "#859900", "#b58900", "#268bd2", "#d33682",
+ "#2aa198", "#eee8d5", "#002b36", "#cb4b16", "#586e75", "#657b83",
+ "#839496", "#6c71c4", "#93a1a1", "#fdf6e3"
+#elif COLOUR_SCHEME == gruvbox
+ "#1d2021", "#cc241d", "#98971a", "#d79921", "#458588", "#b16286",
+ "#689d6a", "#a89984", "#928374", "#fb4934", "#b8bb26", "#fabd2f",
+ "#83a598", "#d3869b", "#8ec07c", "#ebdbb2"
+#endif
+};
diff --git a/config.h b/config.h
index 557c566..60dd437 100644
--- a/config.h
+++ b/config.h
@@ -1,6 +1,7 @@
// Copyright 2024 [email protected]
// SPDX-License-Identifier: MIT/X
#pragma once
+#include "colours.h"
static char *font =
"JetBrainsMono Nerd Font:pixelsize=15:antialias=true:autohint=true";
@@ -28,12 +29,6 @@ char *termname = "xterm-256color";
unsigned int tabspaces = 4;
float alpha = 1.0;
-static const char *colorname[] = {
- "#3B4252", "#BF616A", "#A3BE8C", "#EBCB8B", "#81A1C1", "#B48EAD", "#88C0D0",
- "#E5E9F0", "#4C566A", "#BF616A", "#A3BE8C", "#EBCB8B", "#81A1C1", "#B48EAD",
- "#8FBCBB", "#ECEFF4", [255] = 0, "#D8DEE9", "#2E3440",
-};
-
unsigned int defaultfg = 256;
unsigned int defaultbg = 257;
unsigned int defaultcs = 256;