From 97a5e00cd4bf2adac708535c9eb07abf2218d9a7 Mon Sep 17 00:00:00 2001 From: Nakidai Date: Wed, 27 Mar 2024 04:33:57 +0300 Subject: [PATCH] Font fix & Custom theme --- config.h | 4 ++-- config.mk | 1 + theme.h | 37 +++++++++++++++++++++++++++++++++++++ 3 files changed, 40 insertions(+), 2 deletions(-) create mode 100644 theme.h diff --git a/config.h b/config.h index baff9c3..b1ec2e7 100644 --- a/config.h +++ b/config.h @@ -8,7 +8,7 @@ // static char *font = "Liberation Mono:pixelsize=14:antialias=true:autohint=true"; // static char *font = "Dejavu Sans Mono:pixelsize=14:antialias=true:autohint=true"; // static char *font = "Source Code Pro Mono:pixelsize=14:antialias=true:autohint=true"; -static char *font = "FiraCode Nerd Font Mono:pixelsize=14:antialias=true:autohint=true"; +static char *font = "FiraCode:pixelsize=14:antialias=true:autohint=true"; static int borderpx = 4; /* @@ -99,7 +99,7 @@ unsigned int tabspaces = 8; /* * Include theme */ -#include "frappe.h" +#include "theme.h" /* * Default shape of cursor diff --git a/config.mk b/config.mk index dda92a1..ade03c8 100644 --- a/config.mk +++ b/config.mk @@ -4,6 +4,7 @@ VERSION = 0.9 # Customize below to fit your system # paths +# PREFIX = ${HOME}/.local PREFIX = /usr/local MANPREFIX = $(PREFIX)/share/man diff --git a/theme.h b/theme.h new file mode 100644 index 0000000..6d31a15 --- /dev/null +++ b/theme.h @@ -0,0 +1,37 @@ +/* + * Based on Azu theme +*/ + +static const char *colorname[] = { + /* Colors */ + "#212733", + "#AC6D74", + "#74AC6D", + "#ACA46D", + "#6D74AC", + "#A46DAC", + "#6DACA4", + "#E6E6E6", + + /* 8 bright colors */ + "#262626", + "#D6B8BC", + "#BCD6B8", + "#D6D3B8", + "#B8BCD6", + "#D3B8D6", + "#B8D6D3", + "#C1BDCE", + +[256] = "#C1BDCE", /* foreground */ +// [257] = "#171F2B", /* background */ +[257] = "#212733", /* background */ +[258] = "#FFFCF5", /* cursor */ + +}; + + +unsigned int defaultfg = 256; +unsigned int defaultbg = 257; +unsigned int defaultcs = 258; +static unsigned int defaultrcs = 258;