summaryrefslogtreecommitdiff
path: root/config.def.h
diff options
context:
space:
mode:
authorzachir <zachir@librem.one>2023-02-20 01:52:58 -0600
committerzachir <zachir@librem.one>2023-02-20 01:52:58 -0600
commite37e594a2a75e965c353dd541385208d03f2b4bc (patch)
tree59126c7bb6dff97bc76a13b8e82fc78034cc16e2 /config.def.h
parent6cafedb4b171c53bea640d7850988526b3b64c20 (diff)
add alpha anysize bold-is-not-bright boxdraw_v2 charoffsets clipboard and focus patches
Diffstat (limited to 'config.def.h')
-rw-r--r--config.def.h29
1 files changed, 24 insertions, 5 deletions
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
@@ -68,6 +71,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} },