Skip to content

Instantly share code, notes, and snippets.

@febnug
Created November 26, 2026 03:46
Show Gist options
  • Select an option

  • Save febnug/b28fd747a98daaf0588042e77b0ecfed to your computer and use it in GitHub Desktop.

Select an option

Save febnug/b28fd747a98daaf0588042e77b0ecfed to your computer and use it in GitHub Desktop.
blankon@blankon:~$ sudo bash <<'EOF'
ICON_DIR="/usr/share/icons"
for theme_dir in "$ICON_DIR"/*; do
[ -d "$theme_dir" ] || continue
[ -f "$theme_dir/index.theme" ] || continue
theme="${theme_dir##*/}"
echo
echo "========== $theme =========="
if gtk-update-icon-cache -f -t "$theme_dir"; then
if [ -s "$theme_dir/icon-theme.cache" ]; then
echo "[SUCCESS] $theme"
else
echo "[WARNING] Cache tidak ditemukan: $theme"
fi
else
echo "[FAILED] $theme"
fi
done
EOF
========== Adwaita ==========
gtk-update-icon-cache: Cache file created successfully.
[SUCCESS] Adwaita
========== default ==========
[WARNING] Cache tidak ditemukan: default
========== elementary-xfce ==========
gtk-update-icon-cache: Cache file created successfully.
[SUCCESS] elementary-xfce
========== elementary-xfce-dark ==========
[WARNING] Cache tidak ditemukan: elementary-xfce-dark
========== elementary-xfce-hidpi ==========
gtk-update-icon-cache: Cache file created successfully.
[SUCCESS] elementary-xfce-hidpi
========== gnome ==========
gtk-update-icon-cache: Cache file created successfully.
[SUCCESS] gnome
========== hicolor ==========
gtk-update-icon-cache: Cache file created successfully.
[SUCCESS] hicolor
========== HighContrast ==========
gtk-update-icon-cache: Cache file created successfully.
[SUCCESS] HighContrast
========== Papirus ==========
gtk-update-icon-cache: Cache file created successfully.
[SUCCESS] Papirus
========== Papirus-Dark ==========
gtk-update-icon-cache: Cache file created successfully.
[SUCCESS] Papirus-Dark
========== Papirus-Light ==========
gtk-update-icon-cache: Cache file created successfully.
[SUCCESS] Papirus-Light
========== Tango ==========
gtk-update-icon-cache: Cache file created successfully.
[SUCCESS] Tango
blankon@blankon:~$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment