|
|
|
@ -16,7 +16,7 @@ static int borderpx = 2;
|
|
|
|
|
* 4: value of shell in /etc/passwd |
|
|
|
|
* 5: value of shell in config.h |
|
|
|
|
*/ |
|
|
|
|
static char *shell = "/bin/sh"; |
|
|
|
|
static char *shell = "/usr/bin/zsh"; |
|
|
|
|
char *utmp = NULL; |
|
|
|
|
/* scroll program: to enable use a string like "scroll" */ |
|
|
|
|
char *scroll = NULL; |
|
|
|
@ -106,9 +106,7 @@ char *termname = "st-256color";
|
|
|
|
|
unsigned int tabspaces = 8; |
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
* Terminal colors (16 first used in escape sequence) |
|
|
|
|
* Base16 st template by Daniel Mulford |
|
|
|
|
* oomox-wilmersdorf scheme by oomox-wilmersdorf |
|
|
|
|
* This is the Wilmersdorf theme from doom-theme for Emacs |
|
|
|
|
*/ |
|
|
|
|
static const char *colorname[] = { |
|
|
|
|
/* 8 normal colors */ |
|
|
|
@ -132,6 +130,8 @@ static const char *colorname[] = {
|
|
|
|
|
[15] = "#c6c6c6", /* white */ |
|
|
|
|
|
|
|
|
|
[255] = 0, |
|
|
|
|
[256] = "#282b33", /* black */ |
|
|
|
|
[257] = "#bcbabe", /* white */ |
|
|
|
|
|
|
|
|
|
/* more colors can be added after 255 to use with DefaultXX */ |
|
|
|
|
}; |
|
|
|
@ -141,10 +141,10 @@ static const char *colorname[] = {
|
|
|
|
|
* Default colors (colorname index) |
|
|
|
|
* foreground, background, cursor, reverse cursor |
|
|
|
|
*/ |
|
|
|
|
unsigned int defaultfg = 7; |
|
|
|
|
unsigned int defaultbg = 0; |
|
|
|
|
static unsigned int defaultcs = 7; |
|
|
|
|
static unsigned int defaultrcs = 0; |
|
|
|
|
unsigned int defaultfg = 257; |
|
|
|
|
unsigned int defaultbg = 256; |
|
|
|
|
static unsigned int defaultcs = 257; |
|
|
|
|
static unsigned int defaultrcs = 256; |
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
* https://invisible-island.net/xterm/ctlseqs/ctlseqs.html#h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Ps-SP-q.1D81
|
|
|
|
@ -189,6 +189,43 @@ 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[256] }, |
|
|
|
|
{ "foreground", STRING, &colorname[257] }, |
|
|
|
|
{ "cursorColor", STRING, &colorname[258] }, |
|
|
|
|
{ "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. |
|
|
|
|