Created
October 3, 2014 13:39
-
-
Save golimpio/038de5dd94055e601dbf to your computer and use it in GitHub Desktop.
Replace folders' colours in svg files on gnome icon themes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
echo Replacing \#$1 by \#$2 | |
find . -name *folder* -path *places* -type f -print0 | xargs -0 -n 1 sed -i -e 's/'$1'/'$2'/g' | |
find . -name *fileopen* -path *places* -type f -print0 | xargs -0 -n 1 sed -i -e 's/'$1'/'$2'/g' | |
find . -name *user-desktop* -path *places* -type f -print0 | xargs -0 -n 1 sed -i -e 's/'$1'/'$2'/g' | |
find . -name *user-home* -path *places* -type f -print0 | xargs -0 -n 1 sed -i -e 's/'$1'/'$2'/g' | |
find . -name *network* -path *places* -type f -print0 | xargs -0 -n 1 sed -i -e 's/'$1'/'$2'/g' | |
# e.g. run it from the root folder of the icon theme: | |
# recolor-numix-folders.sh f5c14e 63b6d1 | |
# recolor-numix-folders.sh e9a439 57a0b7 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment