From 294fce1465fea63f8255832be5a58d39af38897d Mon Sep 17 00:00:00 2001 From: He4eT Date: Thu, 26 Dec 2024 09:00:34 +0100 Subject: [PATCH] Add replace_color.sh --- replace_colors.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 replace_colors.sh diff --git a/replace_colors.sh b/replace_colors.sh new file mode 100644 index 0000000..a4d5dfa --- /dev/null +++ b/replace_colors.sh @@ -0,0 +1,17 @@ +#!/bin/bash + +if [ "$#" -ne 4 ]; then + echo "Usage: $0 " + 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"