Created
March 22, 2019 15:27
-
-
Save Mstaaravin/6cea06a9442ffa1b21032eed641066bb to your computer and use it in GitHub Desktop.
caja-insync emblem icon size
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 | |
# https://forums.insynchq.com/t/change-check-mark-icon-size-in-caja/7392/8 | |
ICON_SIZES=(8x8 16x16 22x22 24x24 32x32 36x36 42x42 48x48 72x72 96x96) | |
temp=$(mktemp -d) | |
pushd "$temp" | |
for icon_size in "${ICON_SIZES[@]}"; do | |
mkdir $icon_size | |
cp /usr/share/caja/icons/hicolor/64x64/emblems/emblem-insync-* . | |
for emblem in $(ls *.png); do | |
convert "$emblem" -resize $icon_size $icon_size/"$emblem" | |
done | |
sudo mkdir -p /usr/share/icons/hicolor/$icon_size/emblems/ | |
sudo cp $icon_size/* /usr/share/icons/hicolor/$icon_size/emblems/ | |
done | |
popd | |
rm -r "$temp" | |
sudo gtk-update-icon-cache /usr/share/icons/hicolor |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment