diff options
author | Loek Le Blansch <l.leblansch@gmail.com> | 2020-07-16 11:20:56 +0200 |
---|---|---|
committer | Loek Le Blansch <l.leblansch@gmail.com> | 2020-07-16 11:20:56 +0200 |
commit | 6abda3faad50bdf96c994c9a5fd41f275e7d6842 (patch) | |
tree | f4840fbd31bee5f2cde6b739e40301fb209fcdd7 /config.def.h.orig | |
parent | 1fe8489deda0f8efc407d7b05df0eedce452ffef (diff) |
alpha + config
Diffstat (limited to 'config.def.h.orig')
-rw-r--r-- | config.def.h.orig | 46 |
1 files changed, 42 insertions, 4 deletions
diff --git a/config.def.h.orig b/config.def.h.orig index 93cbcc0..bf62f52 100644 --- a/config.def.h.orig +++ b/config.def.h.orig @@ -5,8 +5,8 @@ * * font: see http://freedesktop.org/software/fontconfig/fontconfig-user.html */ -static char *font = "Liberation Mono:pixelsize=12:antialias=true:autohint=true"; -static int borderpx = 2; +static char *font = "JetBrainsMono NF:pixelsize=13:antialias=true:autohint=true"; +static int borderpx = 0; /* * What program is execed by st depends of these precedence rules: @@ -65,7 +65,7 @@ static unsigned int blinktimeout = 800; /* * thickness of underline and bar cursors */ -static unsigned int cursorthickness = 2; +static unsigned int cursorthickness = 1; /* * bell volume. It must be a value between -100 and 100. Use 0 for disabling @@ -91,7 +91,7 @@ char *termname = "st-256color"; * * stty tabs */ -unsigned int tabspaces = 8; +unsigned int tabspaces = 4; /* Terminal colors (16 first used in escape sequence) */ static const char *colorname[] = { @@ -169,11 +169,49 @@ static unsigned int defaultattr = 11; static uint forcemousemod = ShiftMask; /* + * Xresources preferences to load at startup + */ +ResourcePref resources[] = { + { "font", STRING, &font }, + { "color0", STRING, &colorname[0] }, + { "color1", STRING, &colorname[1] }, + { "color2", STRING, &colorname[2] }, + { "color3", STRING, &colorname[3] }, + { "color4", STRING, &colorname[4] }, + { "color5", STRING, &colorname[5] }, + { "color6", STRING, &colorname[6] }, + { "color7", STRING, &colorname[7] }, + { "color8", STRING, &colorname[8] }, + { "color9", STRING, &colorname[9] }, + { "color10", STRING, &colorname[10] }, + { "color11", STRING, &colorname[11] }, + { "color12", STRING, &colorname[12] }, + { "color13", STRING, &colorname[13] }, + { "color14", STRING, &colorname[14] }, + { "color15", STRING, &colorname[15] }, + { "background", STRING, &colorname[258] }, + { "foreground", STRING, &colorname[259] }, + { "cursorColor", STRING, &colorname[256] }, + { "termname", STRING, &termname }, + { "shell", STRING, &shell }, + { "minlatency", INTEGER, &minlatency }, + { "maxlatency", INTEGER, &maxlatency }, + { "blinktimeout", INTEGER, &blinktimeout }, + { "bellvolume", INTEGER, &bellvolume }, + { "tabspaces", INTEGER, &tabspaces }, + { "borderpx", INTEGER, &borderpx }, + { "cwscale", FLOAT, &cwscale }, + { "chscale", FLOAT, &chscale }, +}; + +/* * Internal mouse shortcuts. * Beware that overloading Button1 will disable the selection. */ static MouseShortcut mshortcuts[] = { /* mask button function argument release */ + { XK_NO_MOD, Button4, kscrollup, {.i = 1} }, + { XK_NO_MOD, 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"} }, |