Update st to version 0.9 (2022-10-25)

This commit is contained in:
Shourai committed 2022-11-08 08:26:14 +01:00
1 parent 2639054bbf
commit 499f8bc1d0
9 files changed
+249 -275

No files matched your search

+27 -46
View File
@@ -5,15 +5,7 @@
*
* font: see http://freedesktop.org/software/fontconfig/fontconfig-user.html
*/
static char *font = "Jetbrains Mono:pixelsize=14:antialias=true:autohint=true";
/* Spare fonts */
static char *font2[] = {
"Droid Sans Mono:style=Regular:pixelsize=14:antialias=true:autohint=true",
"Menlo:style=Regular:pixelsize=14:antialias=true:autohint=true",
"Inconsolata for Powerline:pixelsize=14:antialias=true:autohint=true",
"Hack Nerd Font Mono:pixelsize=14:antialias=true:autohint=true",
};
static char *font = "Liberation Mono:pixelsize=12:antialias=true:autohint=true";
static int borderpx = 2;
/*
@@ -27,7 +19,7 @@ static int borderpx = 2;
static char *shell = "/bin/sh";
char *utmp = NULL;
/* scroll program: to enable use a string like "scroll" */
char *scroll = "scroll";
char *scroll = NULL;
char *stty_args = "stty raw pass8 nl -echo -iexten -cstopb 38400";
/* identification sequence returned in DA and DECID */
@@ -101,36 +93,35 @@ char *termname = "st-256color";
*/
unsigned int tabspaces = 8;
/* bg opacity */
float alpha = 0.70;
/* Terminal colors (16 first used in escape sequence) */
static const char *colorname[] = {
/* 8 normal colors */
[0] = "#002b36", /* black */
[1] = "#dc322f", /* red */
[2] = "#859900", /* green */
[3] = "#b58900", /* yellow */
[4] = "#268bd2", /* blue */
[5] = "#6c71c4", /* magenta */
[6] = "#2aa198", /* cyan */
[7] = "#93a1a1", /* white */
/* 8 normal colors */
"black",
"red3",
"green3",
"yellow3",
"blue2",
"magenta3",
"cyan3",
"gray90",
/* 8 bright colors */
[8] = "#657b83", /* black */
[9] = "#dc322f", /* red */
[10] = "#859900", /* green */
[11] = "#b58900", /* yellow */
[12] = "#268bd2", /* blue */
[13] = "#6c71c4", /* magenta */
[14] = "#2aa198", /* cyan */
[15] = "#fdf6e3", /* white */
/* 8 bright colors */
"gray50",
"red",
"green",
"yellow",
"#5c5cff",
"magenta",
"cyan",
"white",
[255] = 0,
/* more colors can be added after 255 to use with DefaultXX */
"#272727",
"#ffffff",
"#cccccc",
"#555555",
"gray90", /* default foreground colour */
"black", /* default background colour */
};
@@ -138,9 +129,9 @@ static const char *colorname[] = {
* Default colors (colorname index)
* foreground, background, cursor, reverse cursor
*/
unsigned int defaultfg = 257;
unsigned int defaultbg = 256;
static unsigned int defaultcs = 257;
unsigned int defaultfg = 258;
unsigned int defaultbg = 259;
unsigned int defaultcs = 256;
static unsigned int defaultrcs = 257;
/*
@@ -210,13 +201,6 @@ static Shortcut shortcuts[] = {
{ TERMMOD, XK_Y, selpaste, {.i = 0} },
{ ShiftMask, XK_Insert, selpaste, {.i = 0} },
{ TERMMOD, XK_Num_Lock, numlock, {.i = 0} },
{ MODKEY|ShiftMask, XK_Up, zoom, {.f = +1} },
{ MODKEY|ShiftMask, XK_Down, zoom, {.f = -1} },
{ MODKEY|ShiftMask, XK_K, zoom, {.f = +1} },
{ MODKEY|ShiftMask, XK_J, zoom, {.f = -1} },
{ MODKEY|ShiftMask, XK_plus, zoom, {.f = +1} },
{ MODKEY|ShiftMask, XK_underscore, zoom, {.f = -1} },
{ MODKEY|ShiftMask, XK_parenright, zoomreset, {.f = 0} },
};
/*
@@ -258,9 +242,6 @@ static uint ignoremod = Mod2Mask|XK_SWITCH_MOD;
*/
static Key key[] = {
/* keysym mask string appkey appcursor */
{ XK_parenright, Mod1Mask|ShiftMask,"\033[41;6u", 0, 0},
{ XK_underscore, Mod1Mask|ShiftMask,"\033[95;4u", 0, 0},
{ XK_plus, Mod1Mask|ShiftMask,"\033[43;4u", 0, 0},
{ XK_KP_Home, ShiftMask, "\033[2J", 0, -1},
{ XK_KP_Home, ShiftMask, "\033[1;2H", 0, +1},
{ XK_KP_Home, XK_ANY_MOD, "\033[H", 0, -1},