commit cd957b36de95379af96889d81be6d3e5a336aa4e
parent a87f6357ee6cf65b6df7bab4f23523a24248202b
Author: mrgrouse <bdmfegys@duck.com>
Date: Thu, 14 Nov 2024 20:59:09 -0500
config.def.h, Makefile: auto-generate $HOME env variable as a macro in `config.h` Makefile target, for new nnn st/birdterm preview window floating rule
Diffstat:
2 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/Makefile b/Makefile
@@ -24,6 +24,7 @@ config.h:
cp config.def.h $@
sed -i "1i#define GIFDIR \"${GIFDIR}\"" config.h
sed -i "1i#define WALLPAPERDIR \"${WALLPAPERDIR}\"" config.h
+ sed -i "1i#define HOME \"${HOME}\"" config.h
birdwm: ${OBJ}
${CC} -o $@ ${OBJ} ${LDFLAGS}
diff --git a/config.def.h b/config.def.h
@@ -83,6 +83,7 @@ static const Rule rules[] = {
/* end of scratchpad floating rules */
{ "widget", NULL, NULL, 0, 1, -1 }, /* used sometimes, for using sww widgets */
{ "python3", NULL, NULL, 0, 1, -1 }, /* i cant remember what this is tbh */
+ { NULL, NULL, HOME"/.config/nnn/plugins/preview-tui", 0, 1, -1 },
{ NULL, "Toolkit", NULL, 0, 1, -1 }, /* browser floating media player floating rule */
{ "steam","steamwebhelper",NULL, 0, 1, -1 }, /* just to make the steam menus float */