update
This commit is contained in:
parent
1058c7bb9e
commit
d4a49427e5
2
config.h
2
config.h
|
@ -2,7 +2,7 @@ static const Bool wmborder = True;
|
||||||
static const char *fonts[] = {
|
static const char *fonts[] = {
|
||||||
"FiraCode Nerd Font:style=Light:size=10:antialias=true:autohint=true",
|
"FiraCode Nerd Font:style=Light:size=10:antialias=true:autohint=true",
|
||||||
"Chiron Sans HK Light:style=Light:size=10",
|
"Chiron Sans HK Light:style=Light:size=10",
|
||||||
"OpenMoji:style=Color",
|
"Openmoji Color glyf_colr_0:style=Regular:size=15",//Emoji
|
||||||
};
|
};
|
||||||
|
|
||||||
static int fontsize = 10;
|
static int fontsize = 10;
|
||||||
|
|
13
drw.c
13
drw.c
|
@ -133,19 +133,6 @@ xfont_create(Drw *drw, const char *fontname, FcPattern *fontpattern)
|
||||||
die("no font specified.");
|
die("no font specified.");
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Do not allow using color fonts. This is a workaround for a BadLength
|
|
||||||
* error from Xft with color glyphs. Modelled on the Xterm workaround. See
|
|
||||||
* https://bugzilla.redhat.com/show_bug.cgi?id=1498269
|
|
||||||
* https://lists.suckless.org/dev/1701/30932.html
|
|
||||||
* 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;
|
|
||||||
}
|
|
||||||
|
|
||||||
font = ecalloc(1, sizeof(Fnt));
|
font = ecalloc(1, sizeof(Fnt));
|
||||||
font->xfont = xfont;
|
font->xfont = xfont;
|
||||||
font->pattern = pattern;
|
font->pattern = pattern;
|
||||||
|
|
4
layout.h
4
layout.h
|
@ -1,5 +1,5 @@
|
||||||
//
|
//
|
||||||
#define KEYS 71
|
#define KEYS 69
|
||||||
static Key keys_en[KEYS] = {
|
static Key keys_en[KEYS] = {
|
||||||
{ "`~", XK_grave, 1 },
|
{ "`~", XK_grave, 1 },
|
||||||
{ "1!", XK_1, 1 },
|
{ "1!", XK_1, 1 },
|
||||||
|
@ -63,14 +63,12 @@ static Key keys_en[KEYS] = {
|
||||||
{ "Ctrl", XK_Control_L, 2 },
|
{ "Ctrl", XK_Control_L, 2 },
|
||||||
{ "Alt", XK_Alt_L, 2 },
|
{ "Alt", XK_Alt_L, 2 },
|
||||||
{ "", XK_Super_L, 2 },
|
{ "", XK_Super_L, 2 },
|
||||||
{ "Hyper", XK_Hyper_L, 2 },
|
|
||||||
{ "", XK_space, 5 },
|
{ "", XK_space, 5 },
|
||||||
{ "←", XK_Left, 1 },
|
{ "←", XK_Left, 1 },
|
||||||
{ "↓", XK_Down, 1 },
|
{ "↓", XK_Down, 1 },
|
||||||
{ "→", XK_Right, 1},
|
{ "→", XK_Right, 1},
|
||||||
{ "Alt", XK_Alt_R, 2 },
|
{ "Alt", XK_Alt_R, 2 },
|
||||||
{ "", XK_Super_R, 2 },
|
{ "", XK_Super_R, 2 },
|
||||||
{ "Hyper", XK_Hyper_R, 2 },
|
|
||||||
{ "Ctrl", XK_Control_R, 2 },
|
{ "Ctrl", XK_Control_R, 2 },
|
||||||
};
|
};
|
||||||
static Key keys_emoji [KEYS] = {
|
static Key keys_emoji [KEYS] = {
|
||||||
|
|
Loading…
Reference in New Issue