summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharles Cabergs <me@cacharle.xyz>2021-07-01 14:20:20 +0200
committerCharles Cabergs <me@cacharle.xyz>2021-07-01 14:20:20 +0200
commit9d37495257005a9c45c7d7b85244796508494c16 (patch)
tree03ed76e4416a148ec95b4583c47f445167ad8a19
parent82cd78a9447c82f596ca012a726789e869c74942 (diff)
downloadst-master.tar.gz
st-master.tar.bz2
st-master.zip
Added font smitching to FiraMono instead of FiraCode on carbon laptopHEADmaster
-rw-r--r--config.def.h4
-rw-r--r--config.h4
-rw-r--r--config.mk4
3 files changed, 12 insertions, 0 deletions
diff --git a/config.def.h b/config.def.h
index f12e606..485143d 100644
--- a/config.def.h
+++ b/config.def.h
@@ -5,7 +5,11 @@
*
* font: see http://freedesktop.org/software/fontconfig/fontconfig-user.html
*/
+#ifdef CACHARLE_CARBON
+static char *font = "Fira Mono:pixelsize=12:antialias=true:autohint=true";
+#else
static char *font = "Fira Code:pixelsize=12:antialias=true:autohint=true";
+#endif
static int borderpx = 0;
static char *font2[] = {
diff --git a/config.h b/config.h
index f12e606..485143d 100644
--- a/config.h
+++ b/config.h
@@ -5,7 +5,11 @@
*
* font: see http://freedesktop.org/software/fontconfig/fontconfig-user.html
*/
+#ifdef CACHARLE_CARBON
+static char *font = "Fira Mono:pixelsize=12:antialias=true:autohint=true";
+#else
static char *font = "Fira Code:pixelsize=12:antialias=true:autohint=true";
+#endif
static int borderpx = 0;
static char *font2[] = {
diff --git a/config.mk b/config.mk
index 595c5f0..75c3638 100644
--- a/config.mk
+++ b/config.mk
@@ -29,6 +29,10 @@ STCPPFLAGS = -DVERSION=\"$(VERSION)\" -D_XOPEN_SOURCE=600
STCFLAGS = $(INCS) $(STCPPFLAGS) $(CPPFLAGS) $(CFLAGS)
STLDFLAGS = $(LIBS) $(LDFLAGS)
+ifeq ($(shell uname -n), charleslaptopcarbon)
+ STCFLAGS += -DCACHARLE_CARBON
+endif
+
# OpenBSD:
#CPPFLAGS = -DVERSION=\"$(VERSION)\" -D_XOPEN_SOURCE=600 -D_BSD_SOURCE
#LIBS = -L$(X11LIB) -lm -lX11 -lutil -lXft \