From e37e594a2a75e965c353dd541385208d03f2b4bc Mon Sep 17 00:00:00 2001 From: zachir Date: Mon, 20 Feb 2023 01:52:58 -0600 Subject: add alpha anysize bold-is-not-bright boxdraw_v2 charoffsets clipboard and focus patches --- config.def.h | 29 ++++++++++++++++++++++++----- 1 file changed, 24 insertions(+), 5 deletions(-) (limited to 'config.def.h') diff --git a/config.def.h b/config.def.h index 91ab8ca..fabcdfa 100644 --- a/config.def.h +++ b/config.def.h @@ -28,6 +28,9 @@ char *vtiden = "\033[?6c"; /* Kerning / character bounding-box multipliers */ static float cwscale = 1.0; static float chscale = 1.0; +/* Character rendering offsets in pixels */ +static short cxoffset = 0; +static short cyoffset = 0; /* * word delimiter string @@ -67,6 +70,18 @@ static unsigned int blinktimeout = 800; */ static unsigned int cursorthickness = 2; +/* + * 1: render most of the lines/blocks characters without using the font for + * perfect alignment between cells (U2500 - U259F except dashes/diagonals). + * Bold affects lines thickness if boxdraw_bold is not 0. Italic is ignored. + * 0: disable (render all U25XX glyphs normally from the font). + */ +const int boxdraw = 1; +const int boxdraw_bold = 1; + +/* braille (U28XX): 1: render as adjacent "pixels", 0: use font */ +const int boxdraw_braille = 1; + /* * bell volume. It must be a value between -100 and 100. Use 0 for disabling * it @@ -93,6 +108,9 @@ char *termname = "st-256color"; */ unsigned int tabspaces = 8; +/* bg opacity */ +float alpha = 0.8, alphaUnfocused = 0.6; + /* Terminal colors (16 first used in escape sequence) */ static const char *colorname[] = { /* 8 normal colors */ @@ -130,9 +148,10 @@ static const char *colorname[] = { * foreground, background, cursor, reverse cursor */ unsigned int defaultfg = 258; -unsigned int defaultbg = 259; +unsigned int defaultbg = 0; //259 unsigned int defaultcs = 256; static unsigned int defaultrcs = 257; +unsigned int bg = 17, bgUnfocused = 16; /* * Default shape of cursor @@ -184,7 +203,7 @@ static MouseShortcut mshortcuts[] = { }; /* Internal keyboard shortcuts. */ -#define MODKEY Mod1Mask +#define MODKEY Mod4Mask #define TERMMOD (ControlMask|ShiftMask) static Shortcut shortcuts[] = { @@ -193,9 +212,9 @@ static Shortcut shortcuts[] = { { ControlMask, XK_Print, toggleprinter, {.i = 0} }, { ShiftMask, XK_Print, printscreen, {.i = 0} }, { XK_ANY_MOD, XK_Print, printsel, {.i = 0} }, - { TERMMOD, XK_Prior, zoom, {.f = +1} }, - { TERMMOD, XK_Next, zoom, {.f = -1} }, - { TERMMOD, XK_Home, zoomreset, {.f = 0} }, + { ControlMask, XK_equal, zoom, {.f = +1} }, + { ControlMask, XK_minus, zoom, {.f = -1} }, + { TERMMOD, XK_plus, zoomreset, {.f = 0} }, { TERMMOD, XK_C, clipcopy, {.i = 0} }, { TERMMOD, XK_V, clippaste, {.i = 0} }, { TERMMOD, XK_Y, selpaste, {.i = 0} }, -- cgit v1.2.3