-cd "$PWD/xorg"
-for y in icons themes; do
- find $y -type d -mindepth 2 -maxdepth 2 | while read -r x; do
- l "$HOME/.$y/`basename "$x"`" "$PWD/$x"
- done
+find xorg/icons -mindepth 1 -maxdepth 2 -type d | while read -r x; do
+ if [ -e "$x/index.theme" ]; then
+ d="$HOME/.icons/`basename "$x"`"
+ l $d
+ which gtk-update-icon-cache >/dev/null 2>&1 && gtk-update-icon-cache -qtf $d
+ unset d
+ fi