From 7bf6f5dabe3b0530dc1811663a5498acfa1df879 Mon Sep 17 00:00:00 2001 From: stkhan Date: Wed, 23 Jul 2025 21:35:48 -0500 Subject: Dmenu overhaul --- scripts/pre_build.sh | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100755 scripts/pre_build.sh (limited to 'scripts/pre_build.sh') diff --git a/scripts/pre_build.sh b/scripts/pre_build.sh new file mode 100755 index 0000000..a29b4cb --- /dev/null +++ b/scripts/pre_build.sh @@ -0,0 +1,7 @@ +#!/bin/bash +source config.mk +# Set color variable for dmenu +COLOR=$(grep col_cyan colors.h | sed "s/static const char col_cyan\[\] //g ; s/ //g ; s/=\"//g ; s/\"\;//g") +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