diff options
| author | stkhan <personal@slickd.xyz> | 2025-07-23 21:35:48 -0500 |
|---|---|---|
| committer | stkhan <personal@slickd.xyz> | 2025-07-23 21:35:48 -0500 |
| commit | 7bf6f5dabe3b0530dc1811663a5498acfa1df879 (patch) | |
| tree | 04f682c70dda155df024725c39f5093fdf051316 /scripts | |
| parent | 631750d87c2711d2c29c5522a0d8de7744080ac3 (diff) | |
Dmenu overhaul
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/cp.sh | 1 | ||||
| -rwxr-xr-x | scripts/pre_build.sh | 7 |
2 files changed, 8 insertions, 0 deletions
diff --git a/scripts/cp.sh b/scripts/cp.sh index 2722351..7fb531c 100755 --- a/scripts/cp.sh +++ b/scripts/cp.sh @@ -4,3 +4,4 @@ cp ./profiles/$PROFILE/keys.h ./wm/dwm-6.4/ cp ./profiles/$PROFILE/blocks.h ./wm/dwmblocks/ cp ./theme/$THEME/$THEME.png ~/.config/wallpaper.png cp ./theme/$THEME/colors.h . + 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 |