dwm

My fork of dwm.
git clone git://git.alex.balgavy.eu/dwm.git
Log | Files | Refs | README | LICENSE

commit cde6d1f2c7c93f8cf8140bb37f794b015c9fd7e3
parent 3f17e24099a909fb1050f6778619ab3438668d49
Author: Alex Balgavy <alex@balgavy.eu>
Date:   Fri,  8 Oct 2021 13:53:43 +0200

Show colored icons

Diffstat:
Mconfig.h | 4+++-
Mdrw.c | 10+++++-----
2 files changed, 8 insertions(+), 6 deletions(-)

diff --git a/config.h b/config.h @@ -13,7 +13,9 @@ static const int showbar = 1; /* 0 means no bar */ static const int topbar = 1; /* 0 means bottom bar */ static char font[] = "MesloLGS NF:size=10"; static char dmenufont[] = "MesloLGS NF:size=10"; -static const char *fonts[] = { font }; +static const char *fonts[] = { font, + "Noto Color Emoji:pixelsize=14:antialias=true:autohint=true", + "Unifont:pixelsize=14:antialias=true:autohint=true" }; static char normbgcolor[] = "#222222"; static char normbordercolor[] = "#444444"; static char normfgcolor[] = "#bbbbbb"; diff --git a/drw.c b/drw.c @@ -140,11 +140,11 @@ xfont_create(Drw *drw, const char *fontname, FcPattern *fontpattern) * https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=916349 * and lots more all over the internet. */ - FcBool iscol; - if(FcPatternGetBool(xfont->pattern, FC_COLOR, 0, &iscol) == FcResultMatch && iscol) { - XftFontClose(drw->dpy, xfont); - return NULL; - } + // FcBool iscol; + // if(FcPatternGetBool(xfont->pattern, FC_COLOR, 0, &iscol) == FcResultMatch && iscol) { + // XftFontClose(drw->dpy, xfont); + // return NULL; + // } font = ecalloc(1, sizeof(Fnt)); font->xfont = xfont;