From fac7368db148e1b30c98ea1d97819473555d8660 Mon Sep 17 00:00:00 2001 From: Mohammad Anwar Shah Date: Wed, 5 Apr 2017 12:52:27 +0600 Subject: [PATCH] chosen theme name would be placed after the word Arc, fixing #6 in main repo --- 5-moving-and-renaming-the-themes.sh | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/5-moving-and-renaming-the-themes.sh b/5-moving-and-renaming-the-themes.sh index 68e3244f..07b3b4c9 100755 --- a/5-moving-and-renaming-the-themes.sh +++ b/5-moving-and-renaming-the-themes.sh @@ -18,29 +18,29 @@ cp -rf /usr/share/themes/Arc-Dark $HOME"/.themes" cp -rf /usr/share/themes/Arc-Darker $HOME"/.themes" echo "Let us rename the folders so they are unique :" -echo "Your name will be added after 'Arc', 'Arc-Dark' or 'Arc-Darker'." -echo "E.g. Arc-Sun" +echo "Your name will be added after 'Arc' word" +echo "E.g. Arc-Sun, Arc-Sun-Dark, Arc-Sun-Darker" read -p "How should we name this new theme? First letter is a capital letter : " choice echo "Renaming the folders" mv $HOME"/.themes/Arc" $HOME"/.themes/Arc-"$choice -mv $HOME"/.themes/Arc-Dark" $HOME"/.themes/Arc-Dark-"$choice -mv $HOME"/.themes/Arc-Darker" $HOME"/.themes/Arc-Darker-"$choice +mv $HOME"/.themes/Arc-Dark" $HOME"/.themes/Arc-"$choice"-Dark" +mv $HOME"/.themes/Arc-Darker" $HOME"/.themes/Arc"$choice"-Darker" echo "################################################################" echo "Renaming the content of the index.theme" -echo "Arc-Darker-$choice" -find $HOME"/.themes/Arc-Darker-"$choice -name "index.theme" -type f -exec sed -i 's/'Name=Arc-Darker'/'Name=Arc-Darker-$choice'/g' {} \; -find $HOME"/.themes/Arc-Darker-"$choice -name "index.theme" -type f -exec sed -i 's/'GtkTheme=Arc-Darker'/'GtkTheme=Arc-Darker-$choice'/g' {} \; -find $HOME"/.themes/Arc-Darker-"$choice -name "index.theme" -type f -exec sed -i 's/'MetacityTheme=Arc-Darker'/'MetacityTheme=Arc-Darker-$choice'/g' {} \; +echo "Arc-$choice-Darker" +find $HOME"/.themes/Arc-"$choice"-Darker" -name "index.theme" -type f -exec sed -i 's/'Name=Arc-Darker'/'Name=Arc-$choice-Darker'/g' {} \; +find $HOME"/.themes/Arc-"$choice"-Darker" -name "index.theme" -type f -exec sed -i 's/'GtkTheme=Arc-Darker'/'GtkTheme=Arc-$choice-Darker'/g' {} \; +find $HOME"/.themes/Arc-"$choice"-Darker" -name "index.theme" -type f -exec sed -i 's/'MetacityTheme=Arc-Darker'/'MetacityTheme=Arc-$choice-Darker'/g' {} \; echo "################################################################" echo "Renaming inside the index.theme" -echo "Arc-Dark-$choice" -find $HOME"/.themes/Arc-Dark-"$choice -name "index.theme" -type f -exec sed -i 's/'Name=Arc-Dark'/'Name=Arc-Dark-$choice'/g' {} \; -find $HOME"/.themes/Arc-Dark-"$choice -name "index.theme" -type f -exec sed -i 's/'GtkTheme=Arc-Dark'/'GtkTheme=Arc-Dark-$choice'/g' {} \; -find $HOME"/.themes/Arc-Dark-"$choice -name "index.theme" -type f -exec sed -i 's/'MetacityTheme=Arc-Dark'/'MetacityTheme=Arc-Dark-$choice'/g' {} \; +echo "Arc-$choice-Dark" +find $HOME"/.themes/Arc-"$choice"-Dark" -name "index.theme" -type f -exec sed -i 's/'Name=Arc-Dark'/'Name=Arc-$choice-Dark'/g' {} \; +find $HOME"/.themes/Arc-"$choice"-Dark" -name "index.theme" -type f -exec sed -i 's/'GtkTheme=Arc-Dark'/'GtkTheme=Arc-$choice-Dark'/g' {} \; +find $HOME"/.themes/Arc-"$choice"-Dark" -name "index.theme" -type f -exec sed -i 's/'MetacityTheme=Arc-Dark'/'MetacityTheme=Arc-Dark-$choice'/g' {} \; echo "################################################################" echo "Renaming inside the index.theme" echo "Arc-$choice"