diff options
| author | ozpv <39195175+ozpv@users.noreply.github.com> | 2022-05-15 22:23:48 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-05-15 22:23:48 -0500 |
| commit | c38d27bf66fd2ae6f1493b36b3f34c74154268e6 (patch) | |
| tree | 27a6a5b16e7123182ab9702a9667e0918cc90688 /config.h | |
| parent | 06456761420bbfc96893a0f96b72c3996767e228 (diff) | |
update
Diffstat (limited to 'config.h')
| -rw-r--r-- | config.h | 66 |
1 files changed, 30 insertions, 36 deletions
@@ -6,12 +6,6 @@ * font: see http://freedesktop.org/software/fontconfig/fontconfig-user.html */ static char *font = "FiraCode Nerd Font Mono:style=Regular:pixelsize=16:antialias=true:autohint=true"; -/* Spare fonts */ -static char *font2[] = { -/* "Inconsolata for Powerline:pixelsize=12:antialias=true:autohint=true", */ -/* "Hack Nerd Font Mono:pixelsize=11:antialias=true:autohint=true", */ -}; - static int borderpx = 20; /* @@ -74,6 +68,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 = 0; +const int boxdraw_bold = 0; + +/* braille (U28XX): 1: render as adjacent "pixels", 0: use font */ +const int boxdraw_braille = 0; + +/* * bell volume. It must be a value between -100 and 100. Use 0 for disabling * it */ @@ -100,36 +106,29 @@ char *termname = "st-256color"; unsigned int tabspaces = 8; /* bg opacity */ -float alpha = 1.0, alphaUnfocused = 1.0; +float alpha = 1; /* Terminal colors (16 first used in escape sequence) */ static const char *colorname[] = { /* 8 normal colors */ - "#282828", /* black */ - "#cc241d", /* red */ - "#98971a", /* green */ - "#d79921", /* yellow */ - "#458588", /* blue */ - "#b16286", /* magenta */ - "#689d6a", /* cyan */ - "#a89984", /* gray */ + [0] = "#282828", /* hard contrast: #1d2021 / soft contrast: #32302f */ + [1] = "#cc241d", /* red */ + [2] = "#98971a", /* green */ + [3] = "#d79921", /* yellow */ + [4] = "#458588", /* blue */ + [5] = "#b16286", /* magenta */ + [6] = "#689d6a", /* cyan */ + [7] = "#a89984", /* white */ /* 8 bright colors */ - "#928374", /* gray */ - "#fb4934", /* red */ - "#b8bb26", /* green */ - "#fabd2f", /* yellow */ - "#83a598", /* blue */ - "#d3869b", /* magenta */ - "#8ec07c", /* cyan */ - "#ebdbb2", /* white */ - - [255] = 0, - - /* more colors can be added after 255 to use with DefaultXX */ - "#cccccc", - "#555555", - "black", + [8] = "#928374", /* black */ + [9] = "#fb4934", /* red */ + [10] = "#b8bb26", /* green */ + [11] = "#fabd2f", /* yellow */ + [12] = "#83a598", /* blue */ + [13] = "#d3869b", /* magenta */ + [14] = "#8ec07c", /* cyan */ + [15] = "#ebdbb2", /* white */ }; @@ -139,9 +138,8 @@ static const char *colorname[] = { */ unsigned int defaultfg = 7; unsigned int defaultbg = 0; -static unsigned int defaultcs = 15; +unsigned int defaultcs = 15; static unsigned int defaultrcs = 8; -unsigned int bg = 0, bgUnfocused = 0; /* * Default shape of cursor @@ -198,8 +196,6 @@ static uint forcemousemod = ShiftMask; */ static MouseShortcut mshortcuts[] = { /* mask button function argument release */ - { ShiftMask, Button4, kscrollup, {.i = 1} }, - { ShiftMask, Button5, kscrolldown, {.i = 1} }, { XK_ANY_MOD, Button2, selpaste, {.i = 0}, 1 }, { ShiftMask, Button4, ttysend, {.s = "\033[5;2~"} }, { XK_ANY_MOD, Button4, ttysend, {.s = "\031"} }, @@ -225,8 +221,6 @@ static Shortcut shortcuts[] = { { TERMMOD, XK_Y, selpaste, {.i = 0} }, { ShiftMask, XK_Insert, selpaste, {.i = 0} }, { TERMMOD, XK_Num_Lock, numlock, {.i = 0} }, - { ShiftMask, XK_Page_Up, kscrollup, {.i = -1} }, - { ShiftMask, XK_Page_Down, kscrolldown, {.i = -1} }, }; /* |
