Skip to content

Instantly share code, notes, and snippets.

@ellisgeek
Created February 26, 2015 19:05
Show Gist options
  • Save ellisgeek/a8250e22a51fb132454d to your computer and use it in GitHub Desktop.
Save ellisgeek/a8250e22a51fb132454d to your computer and use it in GitHub Desktop.
Updated changecolor.sh for sixsixfives ACID xfce4 theme.
#!/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