st

Personal fork of the suckless terminal.
git clone git://git.zepp.club/st.git
Log | Files | Refs | README | LICENSE

commit b8f11870940f24d86db4846d675718ecfb2bf959
parent 6094adda79a5fe6aec059cec1fce2159c419b96e
Author: Anjeel <xein@zepp.club>
Date:   Mon,  3 Mar 2025 00:19:11 -0300

config: cosmic latte colorscheme

Diffstat:
Mconfig.def.h | 56+++++++++++++++++++++++++++++++++-----------------------
1 file changed, 33 insertions(+), 23 deletions(-)

diff --git a/config.def.h b/config.def.h @@ -53,7 +53,7 @@ int allowwindowops = 0; * near minlatency, but it waits longer for slow updates to avoid partial draw. * low minlatency will tear/flicker more, as it can "detect" idle too early. */ -static double minlatency = 2; +static double minlatency = 8; static double maxlatency = 33; /* @@ -107,25 +107,28 @@ unsigned int tabspaces = 8; /* Terminal colors (16 first used in escape sequence) */ static const char *colorname[] = { - [0] = "#2f2e2d", /* black */ - [1] = "#a36666", /* red */ - [2] = "#90a57d", /* green */ - [3] = "#d7af87", /* yellow */ - [4] = "#7fa5bd", /* blue */ - [5] = "#c79ec4", /* magenta */ - [6] = "#8adbb4", /* cyan */ - [7] = "#d0d0d0", /* white */ - [8] = "#4a4845", /* black */ - [9] = "#d78787", /* red */ - [10] = "#afbea2", /* green */ - [11] = "#e4c9af", /* yellow */ - [12] = "#a1bdce", /* blue */ - [13] = "#d7beda", /* magenta */ - [14] = "#b1e7dd", /* cyan */ - [15] = "#efefef", /* white */ - [255] = 0, - [256] = "#1c1c1c", /* background */ - [257] = "#dddddd", /* foreground */ + [0] = "#202a31", /* black */ + [1] = "#c17b8d", /* red */ + [2] = "#7d9761", /* green */ + [3] = "#b28761", /* yellow */ + [4] = "#5496bd", /* blue */ + [5] = "#9b85bb", /* magenta */ + [6] = "#459d90", /* cyan */ + [7] = "#abb0c0", /* white */ + + /* 8 bright colors */ + [8] = "#898f9e", /* black */ + [9] = "#c17b8d", /* red */ + [10] = "#7d9761", /* green */ + [11] = "#b28761", /* yellow */ + [12] = "#5496bd", /* blue */ + [13] = "#9b85bb", /* magenta */ + [14] = "#459d90", /* cyan */ + [15] = "#c5cbdb", /* white */ + + /* special colors */ + [256] = "#202a31", /* background */ + [257] = "#abb0c0", /* foreground */ }; unsigned int defaultfg = 257; @@ -187,16 +190,23 @@ static uint forcemousemod = ShiftMask; */ 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 }, - { Button4, XK_NO_MOD, "\031" }, - { Button5, XK_NO_MOD, "\005" }, + { ShiftMask, Button4, ttysend, {.s = "\033[5;2~"} }, + { XK_ANY_MOD, Button4, ttysend, {.s = "\031"} }, + { ShiftMask, Button5, ttysend, {.s = "\033[6;2~"} }, + { XK_ANY_MOD, Button5, ttysend, {.s = "\005"} }, }; MouseKey mkeys[] = { /* button mask function argument */ { Button4, ShiftMask, kscrollup, {.i = 1} }, { Button5, ShiftMask, kscrolldown, {.i = 1} }, -}; + }; + + + /* Internal keyboard shortcuts. */ #define MODKEY Mod1Mask