From b40ce8559698d1442ced6e537fb18091f1343fb8 Mon Sep 17 00:00:00 2001 From: xAlpharax <42233094+xAlpharax@users.noreply.github.com> Date: Mon, 14 Aug 2023 01:37:39 +0300 Subject: Complete migration and clean installation. Up to date with the upstream and the latest patches. Personal configuration merged. Changes to be committed: modified: Makefile new file: boxdraw.c new file: boxdraw.o new file: boxdraw_data.h modified: config.def.h new file: config.def.h.orig new file: config.def.h.rej new file: config.h modified: config.mk new file: patches/st-alpha-20220206-0.8.5.diff new file: patches/st-anysize-20220718-baa9357.diff new file: patches/st-boxdraw_v2-0.8.5.diff new file: patches/st-clipboard-0.8.3.diff new file: patches/st-copyurl-multiline-20230406-211964d.diff new file: patches/st-font2-0.8.5.diff new file: patches/st-scrollback-20210507-4536f46.diff new file: patches/st-scrollback-mouse-20220127-2c5edf2-after-scrollback.diff modified: st.c new file: st.c.orig new file: st.c.rej modified: st.h new file: st.h.orig new file: st.h.rej new file: st.o modified: x.c new file: x.c.orig new file: x.o --- config.def.h | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) (limited to 'config.def.h') diff --git a/config.def.h b/config.def.h index 91ab8ca..6d0bb14 100644 --- a/config.def.h +++ b/config.def.h @@ -6,6 +6,12 @@ * font: see http://freedesktop.org/software/fontconfig/fontconfig-user.html */ static char *font = "Liberation Mono:pixelsize=12:antialias=true:autohint=true"; +/* Spare fonts */ +static char *font2[] = { +/* "Inconsolata for Powerline:pixelsize=12:antialias=true:autohint=true", */ +/* "Hack Nerd Font Mono:pixelsize=11:antialias=true:autohint=true", */ +}; + static int borderpx = 2; /* @@ -67,6 +73,18 @@ static unsigned int blinktimeout = 800; */ static unsigned int cursorthickness = 2; +/* + * 1: render most of the lines/blocks characters without using the font for + * perfect alignment between cells (U2500 - U259F except dashes/diagonals). + * Bold affects lines thickness if boxdraw_bold is not 0. Italic is ignored. + * 0: disable (render all U25XX glyphs normally from the font). + */ +const int boxdraw = 0; +const int boxdraw_bold = 0; + +/* braille (U28XX): 1: render as adjacent "pixels", 0: use font */ +const int boxdraw_braille = 0; + /* * bell volume. It must be a value between -100 and 100. Use 0 for disabling * it @@ -93,6 +111,9 @@ char *termname = "st-256color"; */ unsigned int tabspaces = 8; +/* bg opacity */ +float alpha = 0.8; + /* Terminal colors (16 first used in escape sequence) */ static const char *colorname[] = { /* 8 normal colors */ @@ -176,6 +197,8 @@ static uint forcemousemod = ShiftMask; */ static MouseShortcut mshortcuts[] = { /* mask button function argument release */ + { ShiftMask, Button4, kscrollup, {.i = 1} }, + { ShiftMask, 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"} }, @@ -201,6 +224,10 @@ static Shortcut shortcuts[] = { { TERMMOD, XK_Y, selpaste, {.i = 0} }, { ShiftMask, XK_Insert, selpaste, {.i = 0} }, { TERMMOD, XK_Num_Lock, numlock, {.i = 0} }, + { MODKEY, XK_l, copyurl, {.i = 0} }, + { MODKEY|ShiftMask, XK_L, copyurl, {.i = 1} }, + { ShiftMask, XK_Page_Up, kscrollup, {.i = -1} }, + { ShiftMask, XK_Page_Down, kscrolldown, {.i = -1} }, }; /* -- cgit v1.2.3