This commit is contained in:
mrsu 2023-06-26 10:39:15 +01:00
parent c5f6314717
commit c0d403acdb
4 changed files with 28 additions and 22 deletions

View File

@ -5,12 +5,9 @@
* *
* font: see http://freedesktop.org/software/fontconfig/fontconfig-user.html * font: see http://freedesktop.org/software/fontconfig/fontconfig-user.html
*/ */
static char *font = "Liberation Mono:pixelsize=12:antialias=true:autohint=true"; static char *font = "monospace:pixelsize=32:antialias=true:autohint=true";
/* Spare fonts */ /* Spare fonts */
static char *font2[] = { static char *font2[] = { "NotoColorEmoji:pixelsize=24:antialias=true:autohint=true" };
/* "Inconsolata for Powerline:pixelsize=12:antialias=true:autohint=true", */
/* "Hack Nerd Font Mono:pixelsize=11:antialias=true:autohint=true", */
};
static int borderpx = 2; static int borderpx = 2;
@ -99,6 +96,9 @@ char *termname = "st-256color";
*/ */
unsigned int tabspaces = 8; unsigned int tabspaces = 8;
/* bg opacity */
float alpha = 0.8;
/* Terminal colors (16 first used in escape sequence) */ /* Terminal colors (16 first used in escape sequence) */
static const char *colorname[] = { static const char *colorname[] = {
/* 8 normal colors */ /* 8 normal colors */
@ -137,8 +137,8 @@ static const char *colorname[] = {
*/ */
unsigned int defaultfg = 258; unsigned int defaultfg = 258;
unsigned int defaultbg = 259; unsigned int defaultbg = 259;
unsigned int defaultcs = 256; unsigned int defaultcs = 3;
static unsigned int defaultrcs = 257; static unsigned int defaultrcs = 50;
/* /*
* Default shape of cursor * Default shape of cursor
@ -202,6 +202,7 @@ ResourcePref resources[] = {
{ "cursorColor", STRING, &colorname[258] }, { "cursorColor", STRING, &colorname[258] },
{ "termname", STRING, &termname }, { "termname", STRING, &termname },
{ "shell", STRING, &shell }, { "shell", STRING, &shell },
{ "alpha", FLOAT, &alpha },
{ "minlatency", INTEGER, &minlatency }, { "minlatency", INTEGER, &minlatency },
{ "maxlatency", INTEGER, &maxlatency }, { "maxlatency", INTEGER, &maxlatency },
{ "blinktimeout", INTEGER, &blinktimeout }, { "blinktimeout", INTEGER, &blinktimeout },
@ -235,8 +236,8 @@ static Shortcut shortcuts[] = {
{ ControlMask, XK_Print, toggleprinter, {.i = 0} }, { ControlMask, XK_Print, toggleprinter, {.i = 0} },
{ ShiftMask, XK_Print, printscreen, {.i = 0} }, { ShiftMask, XK_Print, printscreen, {.i = 0} },
{ XK_ANY_MOD, XK_Print, printsel, {.i = 0} }, { XK_ANY_MOD, XK_Print, printsel, {.i = 0} },
{ TERMMOD, XK_Prior, zoom, {.f = +1} }, { TERMMOD, XK_K, zoom, {.f = +2} },
{ TERMMOD, XK_Next, zoom, {.f = -1} }, { TERMMOD, XK_J, zoom, {.f = -2} },
{ TERMMOD, XK_Home, zoomreset, {.f = 0} }, { TERMMOD, XK_Home, zoomreset, {.f = 0} },
{ TERMMOD, XK_C, clipcopy, {.i = 0} }, { TERMMOD, XK_C, clipcopy, {.i = 0} },
{ TERMMOD, XK_V, clippaste, {.i = 0} }, { TERMMOD, XK_V, clippaste, {.i = 0} },
@ -244,8 +245,10 @@ static Shortcut shortcuts[] = {
{ ShiftMask, XK_Insert, selpaste, {.i = 0} }, { ShiftMask, XK_Insert, selpaste, {.i = 0} },
{ TERMMOD, XK_Num_Lock, numlock, {.i = 0} }, { TERMMOD, XK_Num_Lock, numlock, {.i = 0} },
{ TERMMOD, XK_Escape, keyboard_select,{ 0 } }, { TERMMOD, XK_Escape, keyboard_select,{ 0 } },
{ ShiftMask, XK_Page_Up, kscrollup, {.i = -1} }, { ControlMask, XK_Page_Up, kscrollup, {.i = 10} },
{ ShiftMask, XK_Page_Down, kscrolldown, {.i = -1} }, { ControlMask, XK_Page_Down, kscrolldown, {.i = 10} },
{ ControlMask, XK_k, kscrollup, {.i = 1} },
{ ControlMask, XK_j, kscrolldown, {.i = 1} },
}; };
/* /*

View File

@ -5,12 +5,9 @@
* *
* font: see http://freedesktop.org/software/fontconfig/fontconfig-user.html * font: see http://freedesktop.org/software/fontconfig/fontconfig-user.html
*/ */
static char *font = "Liberation Mono:pixelsize=12:antialias=true:autohint=true"; static char *font = "monospace:pixelsize=32:antialias=true:autohint=true";
/* Spare fonts */ /* Spare fonts */
static char *font2[] = { static char *font2[] = { "NotoColorEmoji:pixelsize=24:antialias=true:autohint=true" };
/* "Inconsolata for Powerline:pixelsize=12:antialias=true:autohint=true", */
/* "Hack Nerd Font Mono:pixelsize=11:antialias=true:autohint=true", */
};
static int borderpx = 2; static int borderpx = 2;
@ -99,6 +96,9 @@ char *termname = "st-256color";
*/ */
unsigned int tabspaces = 8; unsigned int tabspaces = 8;
/* bg opacity */
float alpha = 0.8;
/* Terminal colors (16 first used in escape sequence) */ /* Terminal colors (16 first used in escape sequence) */
static const char *colorname[] = { static const char *colorname[] = {
/* 8 normal colors */ /* 8 normal colors */
@ -137,8 +137,8 @@ static const char *colorname[] = {
*/ */
unsigned int defaultfg = 258; unsigned int defaultfg = 258;
unsigned int defaultbg = 259; unsigned int defaultbg = 259;
unsigned int defaultcs = 256; unsigned int defaultcs = 3;
static unsigned int defaultrcs = 257; static unsigned int defaultrcs = 50;
/* /*
* Default shape of cursor * Default shape of cursor
@ -202,6 +202,7 @@ ResourcePref resources[] = {
{ "cursorColor", STRING, &colorname[258] }, { "cursorColor", STRING, &colorname[258] },
{ "termname", STRING, &termname }, { "termname", STRING, &termname },
{ "shell", STRING, &shell }, { "shell", STRING, &shell },
{ "alpha", FLOAT, &alpha },
{ "minlatency", INTEGER, &minlatency }, { "minlatency", INTEGER, &minlatency },
{ "maxlatency", INTEGER, &maxlatency }, { "maxlatency", INTEGER, &maxlatency },
{ "blinktimeout", INTEGER, &blinktimeout }, { "blinktimeout", INTEGER, &blinktimeout },
@ -235,8 +236,8 @@ static Shortcut shortcuts[] = {
{ ControlMask, XK_Print, toggleprinter, {.i = 0} }, { ControlMask, XK_Print, toggleprinter, {.i = 0} },
{ ShiftMask, XK_Print, printscreen, {.i = 0} }, { ShiftMask, XK_Print, printscreen, {.i = 0} },
{ XK_ANY_MOD, XK_Print, printsel, {.i = 0} }, { XK_ANY_MOD, XK_Print, printsel, {.i = 0} },
{ TERMMOD, XK_Prior, zoom, {.f = +1} }, { TERMMOD, XK_K, zoom, {.f = +2} },
{ TERMMOD, XK_Next, zoom, {.f = -1} }, { TERMMOD, XK_J, zoom, {.f = -2} },
{ TERMMOD, XK_Home, zoomreset, {.f = 0} }, { TERMMOD, XK_Home, zoomreset, {.f = 0} },
{ TERMMOD, XK_C, clipcopy, {.i = 0} }, { TERMMOD, XK_C, clipcopy, {.i = 0} },
{ TERMMOD, XK_V, clippaste, {.i = 0} }, { TERMMOD, XK_V, clippaste, {.i = 0} },
@ -244,8 +245,10 @@ static Shortcut shortcuts[] = {
{ ShiftMask, XK_Insert, selpaste, {.i = 0} }, { ShiftMask, XK_Insert, selpaste, {.i = 0} },
{ TERMMOD, XK_Num_Lock, numlock, {.i = 0} }, { TERMMOD, XK_Num_Lock, numlock, {.i = 0} },
{ TERMMOD, XK_Escape, keyboard_select,{ 0 } }, { TERMMOD, XK_Escape, keyboard_select,{ 0 } },
{ ShiftMask, XK_Page_Up, kscrollup, {.i = -1} }, { ControlMask, XK_Page_Up, kscrollup, {.i = 10} },
{ ShiftMask, XK_Page_Down, kscrolldown, {.i = -1} }, { ControlMask, XK_Page_Down, kscrolldown, {.i = 10} },
{ ControlMask, XK_k, kscrollup, {.i = 1} },
{ ControlMask, XK_j, kscrolldown, {.i = 1} },
}; };
/* /*

BIN
st Executable file

Binary file not shown.

BIN
x.o

Binary file not shown.