diff options
-rw-r--r-- | Makefile | 2 | ||||
-rw-r--r-- | colours.h | 19 | ||||
-rw-r--r-- | config.h | 7 |
3 files changed, 22 insertions, 6 deletions
@@ -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 +}; @@ -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; |