st-flexipatch

My st-flexipatch configuration
git clone git://git.ethandl.dev/st-flexipatch
Log | Files | Refs | README | LICENSE

commit a06cf718793bb5d33ef17bc63c99dd3f1ad8b131
parent d1d5dede491729820755fec15e5b7b995eae2436
Author: Ethan Long <ethan@OpenBSD-X220.lan>
Date:   Fri, 10 Jan 2025 22:22:12 +1100

Changed the theme to Catppuccin, other general config

Diffstat:
MMakefile | 3---
Mconfig.h.OBSD | 63+++++++++++++++++++++++++++++----------------------------------
Mconfig.mk.OBSD | 2+-
MprepOBSD.sh | 0
4 files changed, 30 insertions(+), 38 deletions(-)

diff --git a/Makefile b/Makefile @@ -45,13 +45,10 @@ install: st sed "s/VERSION/$(VERSION)/g" < st.1 > $(DESTDIR)$(MANPREFIX)/man1/st.1 chmod 644 $(DESTDIR)$(MANPREFIX)/man1/st.1 tic -sx st.info - mkdir -p $(DESTDIR)$(PREFIX)/share/applications # desktop-entry patch - test -f ${DESTDIR}${PREFIX}/share/applications/st.desktop || cp -n st.desktop $(DESTDIR)$(PREFIX)/share/applications # desktop-entry patch @echo Please see the README file regarding the terminfo entry of st. uninstall: rm -f $(DESTDIR)$(PREFIX)/bin/st rm -f $(DESTDIR)$(MANPREFIX)/man1/st.1 - rm -f $(DESTDIR)$(PREFIX)/share/applications/st.desktop # desktop-entry patch .PHONY: all clean dist install uninstall diff --git a/config.h.OBSD b/config.h.OBSD @@ -165,7 +165,7 @@ unsigned int tabspaces = 8; #if ALPHA_PATCH /* bg opacity */ -float alpha = 0.8; +float alpha = 0.95; #if ALPHA_GRADIENT_PATCH float grad_alpha = 0.54; //alpha value that'll change float stat_alpha = 0.46; //constant alpha value that'll get added to grad_alpha @@ -178,48 +178,43 @@ float alphaUnfocused = 0.6; /* Terminal colors (16 first used in escape sequence) */ static const char *colorname[] = { /* 8 normal colors */ - "black", - "red3", - "green3", - "yellow3", - "blue2", - "magenta3", - "cyan3", - "gray90", + "#45475A", + "#F38BA8", + "#A6E3A1", + "#F9E2AF", + "#89B4FA", + "#F5C2E7", + "#94E2D5", + "#BAC2DE", /* 8 bright colors */ - "gray50", - "red", - "green", - "yellow", - "#5c5cff", - "magenta", - "cyan", - "white", - - [255] = 0, - - /* more colors can be added after 255 to use with DefaultXX */ - "#add8e6", /* 256 -> cursor */ - "#555555", /* 257 -> rev cursor*/ - "#000000", /* 258 -> bg */ - "#e5e5e5", /* 259 -> fg */ -}; + "#585B70", + "#F38BA8", + "#A6E3A1", + "#F9E2AF", + "#89B4FA", + "#F5C2E7", + "#94E2D5", + "#A6ADC8", + +[256] = "#CDD6F4", /* default foreground colour */ +[257] = "#1E1E2E", /* default background colour */ +[258] = "#F5E0DC", /*575268*/ +}; /* - * Default colors (colorname index) * foreground, background, cursor, reverse cursor */ #if ALPHA_PATCH && ALPHA_FOCUS_HIGHLIGHT_PATCH unsigned int defaultbg = 0; unsigned int bg = 17, bgUnfocused = 16; #else -unsigned int defaultbg = 258; +unsigned int defaultbg = 257; #endif // ALPHA_FOCUS_HIGHLIGHT_PATCH -unsigned int defaultfg = 259; -unsigned int defaultcs = 256; -unsigned int defaultrcs = 257; +unsigned int defaultfg = 256; +unsigned int defaultcs = 258; +static unsigned int defaultrcs = 258; #if SELECTION_COLORS_PATCH unsigned int selectionfg = 258; unsigned int selectionbg = 259; @@ -410,9 +405,9 @@ static Shortcut shortcuts[] = { { ControlMask, XK_Print, toggleprinter, {.i = 0} }, { ShiftMask, XK_Print, printscreen, {.i = 0} }, { XK_ANY_MOD, XK_Print, printsel, {.i = 0} }, - { TERMMOD, XK_Prior, zoom, {.f = +1} }, - { TERMMOD, XK_Next, zoom, {.f = -1} }, - { TERMMOD, XK_Home, zoomreset, {.f = 0} }, + { ControlMask, XK_equal, zoom, {.f = +1} }, + { ControlMask, XK_minus, zoom, {.f = -1} }, + { ControlMask, XK_0, zoomreset, {.f = 0} }, { TERMMOD, XK_C, clipcopy, {.i = 0} }, { TERMMOD, XK_V, clippaste, {.i = 0} }, #if ALPHA_PATCH diff --git a/config.mk.OBSD b/config.mk.OBSD @@ -4,7 +4,7 @@ VERSION = 0.9.2 # Customize below to fit your system # paths -PREFIX = /usr/local +PREFIX = $(HOME)/.local MANPREFIX = $(PREFIX)/share/man ICONPREFIX = $(PREFIX)/share/pixmaps ICONNAME = st.png diff --git a/prepOBSD.sh b/prepOBSD.sh