From c6ed3de8a62fc3a8eae866eaa7ac076b28d88ad7 Mon Sep 17 00:00:00 2001 From: stkhan Date: Thu, 24 Jul 2025 19:02:26 -0500 Subject: Add custom dmenu color support --- Makefile | 2 +- scripts/pre_build.sh | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 6f4efa8..7c3775b 100644 --- a/Makefile +++ b/Makefile @@ -15,7 +15,7 @@ config: rm -rf .config @./scripts/set_theme.sh @echo "Run make to compile sarc" -sarc: clean +sarc: clean ./scripts/cp.sh ${COLOR} cp wm/${DMENU}/config.h wm/${DMENU}/real_config.h diff --git a/scripts/pre_build.sh b/scripts/pre_build.sh index a29b4cb..9155326 100755 --- a/scripts/pre_build.sh +++ b/scripts/pre_build.sh @@ -5,3 +5,4 @@ COLOR=$(grep col_cyan colors.h | sed "s/static const char col_cyan\[\] //g ; s/ GRAY=$(grep col_gray1 colors.h | sed "s/static const char col_gray1\[\] //g ; s/ //g ; s/=\"//g ; s/\"\;//g") sed -i "s/COL_CYAN/\"${COLOR}\"/g" wm/${DMENU}/real_config.h sed -i "s/COL_GRAY/\"${GRAY}\"/g" wm/${DMENU}/real_config.h + -- cgit v1.2.3