Created
January 18, 2017 05:03
-
-
Save rawsh/fd87ead54d5f829f3a8d26baa7206077 to your computer and use it in GitHub Desktop.
Recolor Paper Icons
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 | |
# From https://forums.bunsenlabs.org/viewtopic.php?id=1200 used on DevPy | |
# Requires Imagemagick | |
#Colorize, preserves alpha and white elements | |
# mogrify -fill 'rgb(x,y,z)' -tint 100 icon.png | |
# Imgs to convert: folder*.png user-home.png inode-directory.png | |
# | |
# cd to ~/.local/share/icons/Paper/ and run script | |
tintcolour="rgb(77, 25, 44)" # DevPy dark red color | |
for f in */places/*;do | |
fname=$(basename $f) | |
if [[ "$fname" = folder*.png ]] && ! [[ "$fname" = "folder-saved-search.png" ]];then | |
mogrify -fill "$tintcolour" -tint 100 "$f" | |
fi | |
echo $f | |
done | |
for f in */places/*;do | |
fname=$(basename $f) | |
if [[ "$fname" = user-home.png ]];then | |
mogrify -fill "$tintcolour" -tint 100 "$f" | |
fi | |
done | |
for f in */status/*;do | |
fname=$(basename $f) | |
if [[ "$fname" = folder*.png ]];then | |
mogrify -fill "$tintcolour" -tint 100 "$f" | |
fi | |
done | |
for f in */mimetypes/*;do | |
fname=$(basename $f) | |
if [[ "$fname" = inode*.png ]];then | |
mogrify -fill "$tintcolour" -tint 100 "$f" | |
fi | |
done | |
## Make terminator use generic terminal icon | |
#for t in */apps;do | |
#if [[ -f "$t/terminator.png" ]];then | |
#cp $t/{terminator.png,terminator.png.orig} | |
#rm $t/terminator.png | |
#ln -rs $t/utilities-terminal.png $t/terminator.png | |
#fi | |
#done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment