Created
April 8, 2020 17:31
-
-
Save o314/362ddca3ee477339ccf86b0cea2cd9ef to your computer and use it in GitHub Desktop.
conf-unity-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
# for unity gui | |
DST_BASE="/usr/share/icons/Humanity/mimes" | |
for mime in *; do | |
[ -e "$mime" ] || continue | |
[ -d "$mime" ] || continue | |
echo "conf mime-type ${mime}" | |
for size in ${mime}/*.svg; do | |
[ -e "$size" ] || continue | |
src="$size" | |
dst_fn=$(echo "${size}" | sed -rn 's~([^/]+)/([0-9]+)\.svg~\2/\1.svg~p') | |
dst="${DST_BASE}/$dst_fn" | |
cp $src $dst | |
done | |
done | |
update-icon-caches /usr/share/icons/* | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment