From 90d5ce64d7fa10de373b0896a239e65fc476df01 Mon Sep 17 00:00:00 2001 From: TiynGER Date: Mon, 30 Mar 2020 21:19:19 +0200 Subject: [PATCH] fixing font for emojis --- config.def.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/config.def.h b/config.def.h index 99690a1..d7777fc 100644 --- a/config.def.h +++ b/config.def.h @@ -8,10 +8,12 @@ static const unsigned int borderpx = 1; /* border pixel of windows */ static const unsigned int snap = 32; /* snap pixel */ static const int showbar = 1; /* 0 means no bar */ static const int topbar = 1; /* 0 means bottom bar */ -static const char *fonts[] = { "monospace:size=10" }; +static const char *fonts[] = { "monospace:size=10", "Noto Color Emoji:size=11" }; static const char dmenufont[] = "monospace:size=10"; static const char col_gray1[] = "#222222"; static const char col_gray2[] = "#444444"; +static const unsigned int baralpha = 0xd0; +static const unsigned int borderalpha = OPAQUE; static const char col_gray3[] = "#f7f7f7"; static const char col_gray4[] = "#000000"; static const char col_cyan[] = "#ffa500"; @@ -20,6 +22,11 @@ static const char *colors[][3] = { [SchemeNorm] = { col_gray3, col_gray1, col_gray2 }, [SchemeSel] = { col_gray4, col_cyan, col_gray3 }, }; +static const unsigned int alphas[][3] = { + /* fg bg border */ + [SchemeNorm] = { OPAQUE, baralpha, borderalpha }, + [SchemeSel] = { OPAQUE, baralpha, borderalpha }, +}; /* tagging */ static const char *tags[] = { "1", "2", "3", "4", "5", "6", "7", "8", "9" };