Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chosen color name would be placed after the word Arc #8

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 12 additions & 12 deletions 5-moving-and-renaming-the-themes.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down