Compare commits

..

17 commits

Author SHA1 Message Date
ant
b9939ae113 symplify nix flake 2026-03-12 19:29:46 +01:00
Antoine Vaure
3a062c2ba8 fix: missing else in previous commit 2026-03-10 10:47:35 +01:00
Antoine Vaure
540ccc2b57 fix: alt key with two bytes keys 2026-02-05 11:02:35 +01:00
ant
df11aae8c3 Revert "change colors for light theme"
This reverts commit 042af42400.
2026-02-05 10:08:37 +01:00
Antoine Vaure
87c6c244c4 change colors for light theme 2026-02-05 10:08:37 +01:00
Antoine Vaure
659b803a40 add keybinnds to scroll 2026-02-05 10:08:37 +01:00
Antoine Vaure
ccaedf3fe9 decrease default font size 2026-02-05 10:08:37 +01:00
ant
4194b515ee Enable alpha patch 2026-02-05 10:08:37 +01:00
ant
568f306b14 enable boxdraw 2026-02-05 10:08:37 +01:00
ant
bedf74d2ad Add a nix flake 2026-02-05 10:08:37 +01:00
ant
653e567b29 enable patches I want 2026-02-05 10:08:37 +01:00
ant
4d18a5e104 change keys to keyboard select and zoom 2026-02-05 10:08:37 +01:00
ant
38dcc0e866 change default colors 2026-02-05 10:08:37 +01:00
ant
d17eac914f Add darkman patch
a patch to choose between two color themes by executing a command
2026-02-05 10:08:37 +01:00
ant
81a9b451e9 font default to caskadia 2026-02-05 10:08:37 +01:00
Antoine Vaure
8ced61c5e3 config: increase scroll speed 2026-02-05 10:08:37 +01:00
ant
1252a3d79d fontfeature patch 2026-02-05 10:08:37 +01:00
4 changed files with 2 additions and 12 deletions

View file

@ -1,4 +1,4 @@
Similar to [dwm-flexipatch](https://github.com/bakkeby/dwm-flexipatch) this st 0.9.3 (688f70a, 2026-01-15) project has a different take on st patching. It uses preprocessor directives to decide whether or not to include a patch during build time. Essentially this means that this build, for better or worse, contains both the patched _and_ the original code. The aim being that you can select which patches to include and the build will contain that code and nothing more. Similar to [dwm-flexipatch](https://github.com/bakkeby/dwm-flexipatch) this st 0.9.3 (6e97047, 2025-08-09) project has a different take on st patching. It uses preprocessor directives to decide whether or not to include a patch during build time. Essentially this means that this build, for better or worse, contains both the patched _and_ the original code. The aim being that you can select which patches to include and the build will contain that code and nothing more.
For example to include the `alpha` patch then you would only need to flip this setting from 0 to 1 in [patches.h](https://github.com/bakkeby/st-flexipatch/blob/master/patches.def.h): For example to include the `alpha` patch then you would only need to flip this setting from 0 to 1 in [patches.h](https://github.com/bakkeby/st-flexipatch/blob/master/patches.def.h):
```c ```c

View file

@ -8,7 +8,7 @@
static char *font = "Cascadia Code NF:regular:pixelsize=13.5:fontfeatures=calt,ss01:antialias=true:autohint=true"; static char *font = "Cascadia Code NF:regular:pixelsize=13.5:fontfeatures=calt,ss01:antialias=true:autohint=true";
#if FONT2_PATCH #if FONT2_PATCH
/* Spare fonts */ /* Spare fonts */
static char *font2[] = { "emoji:pixelsize=13.5:antialias=true:autohint=true" }; static char *font2[] = { "CaskaydiaCove Nerd Font:pixelsize=13.5:antialias=true:autohint=true" };
#endif // FONT2_PATCH #endif // FONT2_PATCH
#if BACKGROUND_IMAGE_PATCH #if BACKGROUND_IMAGE_PATCH

View file

@ -51,7 +51,6 @@
devShell = pkgs.mkShell { devShell = pkgs.mkShell {
inputsFrom = [ packages.st ]; inputsFrom = [ packages.st ];
hardeningDisable = [ "fortify" ];
packages = with pkgs; [ packages = with pkgs; [
bear bear
clang-tools clang-tools

9
st.c
View file

@ -1102,9 +1102,6 @@ tsetdirt(int top, int bot)
{ {
int i; int i;
if (term.row <= 0)
return;
LIMIT(top, 0, term.row-1); LIMIT(top, 0, term.row-1);
LIMIT(bot, 0, term.row-1); LIMIT(bot, 0, term.row-1);
@ -3335,7 +3332,6 @@ eschandle(uchar ascii)
resettitle(); resettitle();
xloadcols(); xloadcols();
xsetmode(0, MODE_HIDE); xsetmode(0, MODE_HIDE);
xsetmode(0, MODE_BRCKTPASTE);
#if SCROLLBACK_PATCH && !REFLOW_PATCH #if SCROLLBACK_PATCH && !REFLOW_PATCH
if (!IS_SET(MODE_ALTSCREEN)) { if (!IS_SET(MODE_ALTSCREEN)) {
term.scr = 0; term.scr = 0;
@ -3470,11 +3466,6 @@ check_control_code:
return; return;
#if SIXEL_PATCH #if SIXEL_PATCH
} else if (term.esc & ESC_DCS) { } else if (term.esc & ESC_DCS) {
/* Skip if DCS escape sequence buffer is full */
if (csiescseq.len >= sizeof(csiescseq.buf) - 1) {
return;
}
csiescseq.buf[csiescseq.len++] = u; csiescseq.buf[csiescseq.len++] = u;
if (BETWEEN(u, 0x40, 0x7E) if (BETWEEN(u, 0x40, 0x7E)
|| csiescseq.len >= \ || csiescseq.len >= \