Created
February 26, 2015 19:05
-
-
Save ellisgeek/a8250e22a51fb132454d to your computer and use it in GitHub Desktop.
Updated changecolor.sh for sixsixfives ACID xfce4 theme.
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/sh | |
command -v gm >/dev/null 2>&1 || { echo >&2 "I require GraphicsMagick but it's not installed. Aborting."; exit 1; } | |
command -v sed >/dev/null 2>&1 || { echo >&2 "I require sed but it's not installed. Aborting."; exit 1; } | |
read -p "Please enter your new color in HEX(eg. #ffffff for white) " NEWCOLOR | |
echo "This may take a while" | |
find . -type f -exec sed -i 's/#a5e12d/'$NEWCOLOR'/g' {} \; | |
cd ./images | |
for name in `find -wholename "*.gif"`; do gm convert $name -fill "$NEWCOLOR" -opaque "#a5e12d" $name; done | |
echo "Done!" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment