From 62c6992189c6fbdac40a0a1bd05a793eb9787c20 Mon Sep 17 00:00:00 2001 From: "Michael D. Lowis" Date: Wed, 28 Feb 2018 19:37:35 -0500 Subject: [PATCH] changed font for osx --- config/st.h | 21 +++++---------------- 1 file changed, 5 insertions(+), 16 deletions(-) diff --git a/config/st.h b/config/st.h index 683f3f8..894bd30 100644 --- a/config/st.h +++ b/config/st.h @@ -5,7 +5,11 @@ * * font: see http://freedesktop.org/software/fontconfig/fontconfig-user.html */ +#ifdef __MACH__ +static char font[] = "Monaco:size=11:antialias=true:autohint=true"; +#else static char font[] = "Liberation Mono:pixelsize=14:antialias=true:autohint=true"; +#endif static int borderpx = 2; #define histsize 5000 @@ -94,7 +98,7 @@ static const char *colorname[] = { "#458588", "#b16286", "#689d6a", - "#a89984", + "#d5c4a1", "#928374", "#b8bb26", "#fabd2f", @@ -458,18 +462,3 @@ static char ascii_printable[] = " !\"#$%&'()*+,-./0123456789:;<=>?" "@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_" "`abcdefghijklmnopqrstuvwxyz{|}~"; - -#ifdef __MACH__ -#include -#include -#define CLOCK_MONOTONIC 0 -void clock_gettime(int clkid, struct timespec *ts) { - clock_serv_t cclock; - mach_timespec_t mts; - host_get_clock_service(mach_host_self(), CALENDAR_CLOCK, &cclock); - clock_get_time(cclock, &mts); - mach_port_deallocate(mach_task_self(), cclock); - ts->tv_sec = mts.tv_sec; - ts->tv_nsec = mts.tv_nsec; -} -#endif -- 2.49.0