Add replace_color.sh

This commit is contained in:
He4eT 2024-12-26 09:00:34 +01:00
parent 7e9ec1db23
commit 294fce1465

17
replace_colors.sh Normal file
View File

@ -0,0 +1,17 @@
#!/bin/bash
if [ "$#" -ne 4 ]; then
echo "Usage: $0 <filename> <new_bg> <new_fg> <new_shadow>"
exit 1
fi
filename=$1
new_bg=$2
new_fg=$3
new_shadow=$4
sed -i "s/#222222/#$new_bg/g" "$filename"
sed -i "s/#444444/#$new_fg/g" "$filename"
sed -i "s/#262626/#$new_shadow/g" "$filename"
echo "Colors replaced in $filename: bg=$new_bg, fg=$new_fg, shadow=$new_shadow"